revid-cli: removed switch to set config verbosity - netsender already does this

This commit is contained in:
saxon 2018-09-22 14:35:41 +09:30
parent 9c56d608b3
commit 1a2fa72e58
1 changed files with 0 additions and 19 deletions

View File

@ -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 != "" {