Make logging less verbose

This commit is contained in:
Hocuri
2021-04-22 17:40:19 +02:00
parent a4486d8c30
commit a1ef32170d
2 changed files with 3 additions and 9 deletions

View File

@@ -61,14 +61,8 @@ impl Imap {
spam_folder = Some(folder.name().to_string()); spam_folder = Some(folder.name().to_string());
} }
if watched_folders.contains(&foldername.to_string()) { // Don't scan folders that are watched anyway
info!( if !watched_folders.contains(&foldername.to_string()) {
context,
"Not scanning folder {} as it is watched anyway", foldername
);
} else {
info!(context, "Scanning folder: {}", foldername);
if let Err(e) = self.fetch_new_messages(context, foldername, false).await { if let Err(e) = self.fetch_new_messages(context, foldername, false).await {
warn!(context, "Can't fetch new msgs in scanned folder: {:#}", e); warn!(context, "Can't fetch new msgs in scanned folder: {:#}", e);
} }

View File

@@ -1118,7 +1118,7 @@ pub(crate) async fn perform_job(context: &Context, mut connection: Connection<'_
if let Err(err) = res { if let Err(err) = res {
warn!( warn!(
context, context,
"{} removes job {} as it failed with error {:?}", &connection, job, err "{} removes job {} as it failed with error {:#}", &connection, job, err
); );
} else { } else {
info!( info!(