Skip to content

Commit

Permalink
bump up default log level to warn, verbose to info
Browse files Browse the repository at this point in the history
Signed-off-by: Riyaz Faizullabhoy <[email protected]>
  • Loading branch information
riyazdf committed Jun 5, 2017
1 parent 6767b98 commit bcd2d88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/notary/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,14 @@ func getPassphraseRetriever() notary.PassRetriever {
}
}

// Set the logging level to fatal on default, or the most specific level the user specified (debug or error)
// Set the logging level to warn on default, or the most verbose level the user specified (debug, info)
func (n *notaryCommander) setVerbosityLevel() {
if n.debug {
logrus.SetLevel(logrus.DebugLevel)
} else if n.verbose {
logrus.SetLevel(logrus.ErrorLevel)
logrus.SetLevel(logrus.InfoLevel)
} else {
logrus.SetLevel(logrus.FatalLevel)
logrus.SetLevel(logrus.WarnLevel)
}
logrus.SetOutput(os.Stderr)
}

0 comments on commit bcd2d88

Please sign in to comment.