From 39da6c23d76a32ed5adbcc91e021f50b2a271a7a Mon Sep 17 00:00:00 2001 From: coo1estguy <70365929+coolestcodeguy@users.noreply.github.com> Date: Sat, 26 Sep 2026 23:22:42 +0530 Subject: [PATCH] perf(api/notify): drop per-request log from info to debug - Demote logger.info to logger.debug in notify handler - Eliminate worker-thread pipe overhead from pino-pretty on the hot path --- src/services/api/handlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/api/handlers.ts b/src/services/api/handlers.ts index 511b6e5..47b94e2 100644 --- a/src/services/api/handlers.ts +++ b/src/services/api/handlers.ts @@ -420,7 +420,7 @@ export function createHandlers(deps: Deps) { messageIds.push(...chunkMessageIds); } - logger.info({ count: targets.length, priority: p }, "notification requested"); + logger.debug({ count: targets.length, priority: p }, "notification requested"); metrics.messagesPublished.inc({ channel: "api", priority: p }, targets.length); if (targets.length === 1) {