log error if unknown log level is passed
This commit is contained in:
parent
dc27974950
commit
ea12273da7
1 changed files with 2 additions and 0 deletions
2
main.go
2
main.go
|
@ -51,6 +51,8 @@ var (
|
|||
if log.GetLevel() == log.DebugLevel {
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue