-
Notifications
You must be signed in to change notification settings - Fork 549
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(instrumentation-pino): log-sending was losing records when the le…
…vel was reduced (#2699) Before this fix, if a Pino logger level was reduced (e.g. from 'info' to 'debug'), then log.debug('msg') would *not* work. The same thing would happen if a child logger was created at a lower-level than its parent. This issue was that PinoInstrumentation is internally using a pino multistream (https://getpino.io/#/docs/api?id=pino-multistream) and statically setting the level of those streams to the current Logger level. If the logger level was set lower, the multistream levels would end up filtering records at that original higher level. The fix is to set the stream levels to 0 to never filter out records. Closes: #2696
- Loading branch information
Showing
2 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters