forked from line/armeria
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a bug where logs produced by
Flags
were not appended to `Requ…
…estContextExportingAppender` (line#5361) Motivation: If `Flags` class is initialized before `RequestContextExportingAppender` is registered to the root logger, the logs produced `Flags` in the initialization of the class are silently ignored. See line#5327 for the details. Modifications: - Lazily create `RequestContextExporterBuilder` to not initialize `Flags` while ` RequestContextExportingAppender` is being initialized. - `RequestContextExporterBuilder` is created when `FlagsLoaded.get()` is true. Result: - `Flags` now correctly logs all messages when `RequestContextExportingAppender` is configured. - Fixes line#5327
- Loading branch information
Showing
1 changed file
with
30 additions
and
14 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