log error if unknown log level is passed
This commit is contained in:
parent
dc27974950
commit
ea12273da7
2
main.go
2
main.go
|
@ -51,6 +51,8 @@ var (
|
||||||
if log.GetLevel() == log.DebugLevel {
|
if log.GetLevel() == log.DebugLevel {
|
||||||
log.SetReportCaller(true)
|
log.SetReportCaller(true)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
log.Errorf("unknown log level '%s' (possible values: debug, info, warn, error, fatal, default: warn)", loglvl)
|
||||||
}
|
}
|
||||||
|
|
||||||
// read the term height and width for tables
|
// read the term height and width for tables
|
||||||
|
|
Loading…
Reference in a new issue