Skip to content

Commit

Permalink
Fixing browser side child log issue, child level can now be set at cr…
Browse files Browse the repository at this point in the history
…eation time, pinojs#960
  • Loading branch information
smx-stevel committed Jun 9, 2024
1 parent 8db130e commit 037e900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function pino (opts) {
// must happen before the level is assigned
appendChildLogger(this, newLogger)
// required to actually initialize the logger functions for any given child
newLogger.level = this.level
newLogger.level = childOptions.level || this.level // allow level to be set by childOptions

return newLogger
}
Expand Down

0 comments on commit 037e900

Please sign in to comment.