From 1a2fa72e584508e4ed83ac5e5122ab730f79d489 Mon Sep 17 00:00:00 2001 From: saxon Date: Sat, 22 Sep 2018 14:35:41 +0930 Subject: [PATCH] revid-cli: removed switch to set config verbosity - netsender already does this --- cmd/revid-cli/main.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index 3e379315..01dc3d4d 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -165,25 +165,6 @@ func handleFlags() { logger = smartlogger.New(defaultLogVerbosity, logPath) - // FIXME (saxon): if we store a logger that keeps track of verbosity, we don't - // need the verbosity var in the config - switch *configFlags[verbosityPtr] { - case "Debug": - config.Verbosity = smartlogger.Debug - case "Info": - config.Verbosity = smartlogger.Info - case "Warning": - config.Verbosity = smartlogger.Warning - case "Error": - config.Verbosity = smartlogger.Error - case "Fatal": - config.Verbosity = smartlogger.Fatal - case "": - config.Verbosity = defaultLogVerbosity - default: - logger.Log(smartlogger.Warning, pkg+"bad input argument for LogVerbosity") - } - config.Logger = logger if *cpuprofile != "" {