From 4858276465a764f4e0973a463428a653a2a466ab Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Thu, 30 Jan 2025 22:38:29 -0500 Subject: [PATCH] don't log slow activities, as this is known to happen under regular circumstances --- .../src/queue/processors/InboxProcessorService.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/backend/src/queue/processors/InboxProcessorService.ts b/packages/backend/src/queue/processors/InboxProcessorService.ts index 557a759136..35a0bf095d 100644 --- a/packages/backend/src/queue/processors/InboxProcessorService.ts +++ b/packages/backend/src/queue/processors/InboxProcessorService.ts @@ -97,14 +97,7 @@ export class InboxProcessorService implements OnApplicationShutdown { throw err; } finally { - const duration = log.duration = calculateDurationSince(startTime); - - // TODO remove this - // Activities should time out after roughly 5 seconds. - // A runtime longer than 10 seconds could indicate a problem or attack. - if (duration > 10000) { - this.logger.warn(`Activity ${JSON.stringify(activity.id)} by "${keyId}" took ${(duration / 1000).toFixed(1)} seconds to complete`); - } + log.duration = calculateDurationSince(startTime); // Save or finalize asynchronously this.apLogService.saveInboxLog(log)