Skip to content

Commit

Permalink
log: use parent logger level for sub loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
jchappelow authored and charithabandi committed Jan 17, 2025
1 parent 6c84eae commit b4d5b77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ func (l *plainLogger) NewWithLevel(lvl Level, name string) Logger {

func (l *plainLogger) New(name string) Logger {
logger := l.be.Logger(name)
logger.SetLevel(l.log.Level())
return &plainLogger{
be: l.be,
log: logger,
Expand Down

0 comments on commit b4d5b77

Please sign in to comment.