4 more debug statements

This commit is contained in:
Hocuri
2026-03-23 16:04:50 +01:00
parent 88d31d6b30
commit 67851e64ba
2 changed files with 4 additions and 0 deletions

View File

@@ -515,6 +515,7 @@ impl Imap {
watch_folder: &str,
folder_meaning: FolderMeaning,
) -> Result<()> {
info!(context, "dbg 2");
if !context.sql.is_open().await {
// probably shutdown
bail!("IMAP operation attempted while it is torn down");
@@ -551,6 +552,7 @@ impl Imap {
folder: &str,
folder_meaning: FolderMeaning,
) -> Result<bool> {
info!(context, "dbg 3");
if should_ignore_folder(context, folder, folder_meaning).await? {
info!(context, "Not fetching from {folder:?}.");
session.new_mail = false;
@@ -562,6 +564,7 @@ impl Imap {
.await
.with_context(|| format!("Failed to select folder {folder:?}"))?;
if !folder_exists {
info!(context, "dbg 4");
return Ok(false);
}

View File

@@ -567,6 +567,7 @@ async fn fetch_idle(
)
.await
.context("idle")?;
info!(ctx, "dbg 1");
Ok(session)
}