add exit on cli bind fails + copy update

This commit is contained in:
Alex Goodman
2020-05-22 15:25:49 -04:00
parent ae6feed8fc
commit 51c972ad33
2 changed files with 8 additions and 2 deletions
+3 -1
View File
@@ -85,7 +85,9 @@ func (cfg *Application) Build() error {
cfg.ScopeOpt = scopeOption
if cfg.Quiet {
// quiet option trumps all other logging options
// TODO: this is bad: quiet option trumps all other logging options
// we should be able to quiet the consol logging and leave file logging alone...
// ... this will be an enhancement for later
cfg.Log.LevelOpt = zapcore.PanicLevel
} else {
if cfg.Log.Level != "" {