-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use development logging when running a local build (#889)
* Use development logging when running a local build The [zap development logger](https://godoc.org/go.uber.org/zap#NewDevelopmentConfig) provides nicer console output as well as a few other different defaults for development. To decide whether to use production or development it's checking if `Version` has been set at build time. If not it assumes it's development. It may be better not to conflate version number with build type in which case we could add a separate build type. But first I wanted to see if the general idea desirable. * add log profile flag * add build variable
- Loading branch information
Showing
3 changed files
with
44 additions
and
3 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
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