From 3bf799c5e7e24dec8cd416a3255e95431d804fbb Mon Sep 17 00:00:00 2001 From: indifferentketchup <159190319+indifferentketchup@users.noreply.github.com> Date: Tue, 7 Apr 2026 10:50:44 -0500 Subject: [PATCH] change gmail poll --- gmail-poll.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gmail-poll.js b/gmail-poll.js index 06c73f0..9bf31af 100644 --- a/gmail-poll.js +++ b/gmail-poll.js @@ -23,7 +23,7 @@ const { const { getGmailClient } = require('./services/gmail'); const { getNextTicketNumber, checkTicketLimits, getOrCreateTicketCategory, createEmailTicketAsThread, toDiscordSafeName, getSenderLocal } = require('./services/tickets'); const { getEmailRouting } = require('./services/guildSettings'); -const { logError, logGmail } = require('./services/debugLog'); +const { logError, logGmail, logAutomation } = require('./services/debugLog'); const { increment } = require('./services/patternStore'); const Ticket = mongoose.model('Ticket'); @@ -43,7 +43,7 @@ async function poll(client) { try { pollCount++; if (pollCount % 10 === 0) { - logGmail('Poll summary', `polls: ${pollCount}, processed: ${totalProcessed}, skipped: ${totalSkipped}, errors: ${totalErrors}`, null, null).catch(() => {}); + 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()...');