Merged in simplfy_statement (pull request #296)

revid/config: Simplfied LogLevel check

Approved-by: Saxon Milton <saxon.milton@gmail.com>
This commit is contained in:
Frank Cui 2019-12-04 23:10:34 +00:00 committed by Saxon Milton
commit 8d57977fd9
1 changed files with 1 additions and 5 deletions

View File

@ -267,11 +267,7 @@ var (
// if particular parameters have not been defined.
func (c *Config) Validate() error {
switch c.LogLevel {
case logger.Debug:
case logger.Info:
case logger.Warning:
case logger.Error:
case logger.Fatal:
case logger.Debug, logger.Info, logger.Warning, logger.Error, logger.Fatal:
default:
c.LogLevel = defaultVerbosity
c.Logger.Log(logger.Info, pkg+"bad LogLevel mode defined, defaulting", "LogLevel", defaultVerbosity)