refactor(data): establish API contract guardrails
CI / Quality and Bundle Budgets (push) Has been cancelled
CI / Quality and Bundle Budgets (push) Has been cancelled
This commit is contained in:
@@ -21,6 +21,9 @@ type LogLevel = "debug" | "info" | "warn" | "error" | "fatal";
|
||||
const rootLogger: PinoLogger = pino(createLoggerOptions());
|
||||
|
||||
function createLoggerOptions(): LoggerOptions {
|
||||
if (process.env.NODE_ENV === "test") {
|
||||
return { level: "silent" };
|
||||
}
|
||||
if (!AppEnvUtil.canOutputLogs()) {
|
||||
return { level: "silent" };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user