Regression: Fix pino child log levels (#24302)

pull/24272/head^2
Diego Sampaio 4 years ago committed by GitHub
parent 114b19541c
commit 30b4e32e72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      server/lib/logger/getPino.ts

@ -39,5 +39,5 @@ const mainPino = pino({
export type MainLogger = typeof mainPino;
export function getPino(name: string, level = 'warn'): MainLogger {
return mainPino.child({ name, level }) as MainLogger;
return mainPino.child({ name }, { level }) as MainLogger;
}

Loading…
Cancel
Save