From 0d920e02b1f6fbecb9ade7daeb250f573aae0281 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 2 Jan 2023 21:06:21 -0500 Subject: [PATCH] chore: Remove query logging in test env --- server/logging/Logger.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/logging/Logger.ts b/server/logging/Logger.ts index 28b4ceca4..8c62c371b 100644 --- a/server/logging/Logger.ts +++ b/server/logging/Logger.ts @@ -8,6 +8,7 @@ import Sentry from "@server/logging/sentry"; import * as Tracing from "./tracer"; const isProduction = env.ENVIRONMENT === "production"; +const isDev = env.ENVIRONMENT === "development"; type LogCategory = | "lifecycle" @@ -29,7 +30,7 @@ class Logger { constructor() { this.output = winston.createLogger({ - level: isProduction ? "info" : "debug", + level: isDev ? "debug" : "info", }); this.output.add( new winston.transports.Console({