Skip to content

Commit

Permalink
fix: Default level for pino app logger
Browse files Browse the repository at this point in the history
Should always be lowest level that will be output regardless of stream levels
  • Loading branch information
FoxxMD committed Feb 22, 2024
1 parent 7bd8e21 commit c011fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const appPinoLogger = async (config: LogConfig = {}, name = 'App') => {
const options = buildParsedLogOptions(config);
const stream = buildPinoConsoleStream(options);
const file = await buildPinoFileStream(options);
return buildPinoLogger(options.level as Level, [stream, file]);
return buildPinoLogger('debug' as Level, [stream, file]);
}

export const createChildPinoLogger = (parent: LabelledLogger, labelsVal: any | any[] = [], context: object = {}, options = {}) => {
Expand Down

0 comments on commit c011fe2

Please sign in to comment.