Replace all event! by a specific macro: warn!, error!, etc.
This commit is contained in:
parent
1485110204
commit
8152d3d9b0
7 changed files with 43 additions and 82 deletions
|
|
@ -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(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue