config: fix --log-level flag after code reorganization - fixes #2043

This commit is contained in:
Nick Craig-Wood 2018-02-02 14:07:11 +00:00
parent 2f746426e7
commit 6fb868e00c

View File

@ -84,7 +84,6 @@ func AddFlags(flagSet *pflag.FlagSet) {
// SetFlags converts any flags into config which weren't straight foward
func SetFlags() {
fs.Config.LogLevel = fs.LogLevelNotice
if verbose >= 2 {
fs.Config.LogLevel = fs.LogLevelDebug
} else if verbose >= 1 {