Allow users to set the log level for the root log15 handler.#554
Allow users to set the log level for the root log15 handler.#554parkr wants to merge 1 commit intogolang:masterfrom parkr:set-log-level-via-env-var
Conversation
Using the GODOC_LOG_LEVEL environment variable, an administrator running this service can decide which logs to print. This is helpful for toggling off debugging logs which may contain sensitive information such as credentials.
|
This PR (HEAD: b0e939c) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/#/c/gddo/+/115315 to see it. Tip: You can toggle comments from me using the |
|
Message from David Symonds: Patch Set 1: I don't own any of this code. Please don’t reply on this GitHub thread. Visit golang.org/cl/115315. |
|
Message from Parker Moore: Patch Set 1:
Sorry, David! My apologies. You were the only person I saw who had commits in the last 1 month: https://github.com/golang/gddo/pulse/monthly Do you know who I should ask for review here? ADG? Please don’t reply on this GitHub thread. Visit golang.org/cl/115315. |
Using the GODOC_LOG_LEVEL environment variable, an administrator running this service
can decide which logs to print. This is helpful for toggling off debugging logs which
may contain sensitive information such as credentials.
If a logger is defined in the context passed into any of the exported logging methods, then this environment variable does not take effect – the handlers specified on the logger in the context determines what is logged and how.