mirror of
https://github.com/outline/outline.git
synced 2026-11-28 00:09:58 +03:00
chore: Remove query logging in test env
This commit is contained in:
1 parent
6efcf1c1a8
commit
0d920e02b1
1 file changed
+2
-1
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user