logging: reduce debug logging a bit

This commit is contained in:
Dirk-Jan C. Binnema
2024-06-13 20:24:03 +03:00
parent 5bd439271d
commit e6fd83d00d
3 changed files with 5 additions and 9 deletions

View File

@ -563,9 +563,7 @@ process_message(const MimeMessage& mime_msg, const std::string& path,
if (info.body_txt) { /* attempt to get the body-language */ if (info.body_txt) { /* attempt to get the body-language */
if (const auto lang{detect_language(info.body_txt.value())}; lang) { if (const auto lang{detect_language(info.body_txt.value())}; lang) {
info.language = lang->code; info.language = lang->code;
mu_debug("detected language: {}", lang->code); }
} else
mu_debug("could not detect language");
} }
#endif /*HAVE_CLD2*/ #endif /*HAVE_CLD2*/
} }

View File

@ -194,10 +194,11 @@ ContactsCache::serialize() const
void void
ContactsCache::add(Contact&& contact) ContactsCache::add(Contact&& contact)
{ {
/* we do _not_ cache invalid email addresses, so we won't offer them in completions etc. It /* we do _not_ cache invalid email addresses, so we won't offer them in
* should be _rare_, but we've seen cases ( broken local messages) */ * completions etc. It should be _rare_, but we've seen cases ( broken
* local messages, and various "fake" messages RSS2Imap etc. */
if (!is_valid(contact.email)) { if (!is_valid(contact.email)) {
mu_warning("not caching invalid e-mail address '{}'", contact.email); mu_debug("not caching invalid e-mail address '{}'", contact.email);
return; return;
} }

View File

@ -264,8 +264,6 @@ msg_move_verify(const std::string& src, const std::string& dst)
mu_debug("source is still there ({}->{})", src, dst); mu_debug("source is still there ({}->{})", src, dst);
} }
mu_debug("moved {} -> {}", src, dst);
return Ok(); return Ok();
} }
/* LCOV_EXCL_STOP*/ /* LCOV_EXCL_STOP*/
@ -430,7 +428,6 @@ Mu::maildir_determine_target(const std::string& old_path,
if (const auto checked{check_determine_target_params( if (const auto checked{check_determine_target_params(
old_path, root_maildir_path, target_maildir, newflags)}; !checked) old_path, root_maildir_path, target_maildir, newflags)}; !checked)
return Err(Error{std::move(checked.error())}); return Err(Error{std::move(checked.error())});
/* /*
* this gets us the source maildir filesystem path, the directory * this gets us the source maildir filesystem path, the directory
* in which new/ & cur/ lives, and the source file * in which new/ & cur/ lives, and the source file