aboutsummaryrefslogtreecommitdiff
path: root/src/mail.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mail.rs')
-rw-r--r--src/mail.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mail.rs b/src/mail.rs
index 9fe0ed8..c77e2ad 100644
--- a/src/mail.rs
+++ b/src/mail.rs
@@ -23,7 +23,7 @@ pub async fn send(
) -> bool {
let headers = format_headers(recipients.clone(), subject);
- info!(
+ log::info!(
"Sending mail{}\n{}",
if config.mock_mails { " (MOCK)" } else { "" },
headers.clone()
@@ -52,18 +52,18 @@ pub async fn send(
match spawn(command, &message.into_bytes()).await {
Ok(output) => {
if output.status.success() {
- info!("Mail sent");
+ log::info!("Mail sent");
true
} else {
match String::from_utf8(output.stderr) {
- Ok(error) => error!("Error sending email: {}", error),
- _ => error!("Error sending email"),
+ Ok(error) => log::error!("Error sending email: {}", error),
+ _ => log::error!("Error sending email"),
};
false
}
}
Err(err) => {
- error!("Error spawning command: {:?}", err);
+ log::error!("Error spawning command: {:?}", err);
false
}
}