Change log-level for better performance and less annoying logs (#1231)

This PR removes not so useful logs and changes most of Info level
log to Debug/Error level in hot path while preserving some of them
that is helpful for troubleshooting.
This commit is contained in:
Ta-Ching Chen
2019-07-19 12:38:36 +08:00
committed by GitHub
parent 6e00733f68
commit 1beaa9ec13
23 changed files with 98 additions and 164 deletions
+3 -1
View File
@@ -232,7 +232,9 @@ Options:
if isDebugEnv {
logger, err = zap.NewDevelopment()
} else {
logger, err = zap.NewProduction()
config := zap.NewProductionConfig()
config.DisableStacktrace = true
logger, err = config.Build()
}
if err != nil {
log.Fatalf("can't initialize zap logger: %v", err)