chore: Remove query logging in test env
This commit is contained in:
@@ -8,6 +8,7 @@ import Sentry from "@server/logging/sentry";
|
|||||||
import * as Tracing from "./tracer";
|
import * as Tracing from "./tracer";
|
||||||
|
|
||||||
const isProduction = env.ENVIRONMENT === "production";
|
const isProduction = env.ENVIRONMENT === "production";
|
||||||
|
const isDev = env.ENVIRONMENT === "development";
|
||||||
|
|
||||||
type LogCategory =
|
type LogCategory =
|
||||||
| "lifecycle"
|
| "lifecycle"
|
||||||
@@ -29,7 +30,7 @@ class Logger {
|
|||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.output = winston.createLogger({
|
this.output = winston.createLogger({
|
||||||
level: isProduction ? "info" : "debug",
|
level: isDev ? "debug" : "info",
|
||||||
});
|
});
|
||||||
this.output.add(
|
this.output.add(
|
||||||
new winston.transports.Console({
|
new winston.transports.Console({
|
||||||
|
|||||||
Reference in New Issue
Block a user