Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

feat(gddo-server): make log level configurable, default to info #660

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dominicbarnes
Copy link

@dominicbarnes dominicbarnes commented Nov 6, 2019

This PR adds the ability to configure the log level for the server. Currently, the default is to log everything (including debug) which logs secrets like the github token and is a security risk.

This is similar to #554 but opts to integrate with viper to keep this consistent, in addition to allowing this to be set as a CLI flag.

Lastly, the default log level becomes "info" which is probably what most people want, and they can opt in to "debug" if needed when troubleshooting.

@gopherbot
Copy link

This PR (HEAD: f68fa17) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/gddo/+/205607 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link

This PR (HEAD: 1ed333a) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/gddo/+/205607 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

gddo-server/config.go Outdated Show resolved Hide resolved
@gopherbot
Copy link

This PR (HEAD: b36045e) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/gddo/+/205607 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants