Skip to content

Commit

Permalink
Regression: Log Sections not respecting Log Level setting (#23230)
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-lehnen-rc authored Sep 21, 2021
1 parent 9500244 commit 7e9ae55
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/lib/logger/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ export class Logger {
}

section(name: string): P.Logger {
return this.logger.child({ section: name });
const child = this.logger.child({ section: name });

logLevel.on('changed', (level) => {
child.level = getLevel(level);
});

return child;
}

level(newLevel: string): void {
Expand Down

0 comments on commit 7e9ae55

Please sign in to comment.