From 4d53ef179f898669bf24f83ca464a7da2871a597 Mon Sep 17 00:00:00 2001 From: indifferentketchup <159190319+indifferentketchup@users.noreply.github.com> Date: Wed, 8 Apr 2026 08:24:13 -0500 Subject: [PATCH] gmail poll --- gmail-poll.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gmail-poll.js b/gmail-poll.js index 9bf31af..ab9ef8f 100644 --- a/gmail-poll.js +++ b/gmail-poll.js @@ -43,7 +43,9 @@ async function poll(client) { try { pollCount++; if (pollCount % 10 === 0) { - logAutomation('Gmail poll summary', null, `polls: ${pollCount}, processed: ${totalProcessed}, skipped: ${totalSkipped}, errors: ${totalErrors}`).catch(() => {}); + if (totalProcessed > 0) { + logAutomation('Gmail poll summary', null, `polls: ${pollCount}, processed: ${totalProcessed}, skipped: ${totalSkipped}, errors: ${totalErrors}`).catch(() => {}); + } pollCount = 0; totalProcessed = 0; totalSkipped = 0; totalErrors = 0; } console.log('Running poll()...');