From 0d8d9a17986954b33334baa4e6cfd4cea37e028e Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 10 Mar 2026 19:37:02 -0400 Subject: [PATCH] chore: Move warning logs from Sentry to standard logs (#11708) --- server/logging/Logger.ts | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/server/logging/Logger.ts b/server/logging/Logger.ts index a0a2b720cd..4cbbf585d2 100644 --- a/server/logging/Logger.ts +++ b/server/logging/Logger.ts @@ -117,26 +117,7 @@ class Logger { */ public warn(message: string, extra?: Extra) { Metrics.increment("logger.warning"); - - if (env.SENTRY_DSN) { - Sentry.withScope((scope) => { - scope.setLevel("warning"); - - for (const key in extra) { - scope.setExtra(key, this.sanitize(extra[key])); - } - - Sentry.captureMessage(message); - }); - } - - if (env.isProduction) { - this.output.warn(message, this.sanitize(extra)); - } else if (extra) { - console.warn(message, extra); - } else { - console.warn(message); - } + this.output.warn(message, this.sanitize(extra)); } /**