Replace all event! by a specific macro: warn!, error!, etc.

This commit is contained in:
Greg Burri 2025-04-30 01:50:50 +02:00
parent 1485110204
commit 8152d3d9b0
7 changed files with 43 additions and 82 deletions

View file

@ -2,7 +2,7 @@ use lettre::{
AsyncTransport, Message, Tokio1Executor,
transport::smtp::{AsyncSmtpTransport, authentication::Credentials},
};
use tracing::{Level, event};
use tracing::error;
use crate::consts;
@ -43,7 +43,7 @@ pub async fn send_email(
.build();
if let Err(error) = mailer.send(email).await {
event!(Level::ERROR, "Error when sending E-mail: {}", &error);
error!("Error when sending E-mail: {}", &error);
}
Ok(())