mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 13:26:28 +03:00
Make logging less verbose
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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!(
|
||||||
|
|||||||
Reference in New Issue
Block a user