mirror of https://bitbucket.org/ausocean/av.git
revid-cli: removed switch to set config verbosity - netsender already does this
This commit is contained in:
parent
9c56d608b3
commit
1a2fa72e58
|
@ -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 != "" {
|
||||
|
|
Loading…
Reference in New Issue