log error if unknown log level is passed

This commit is contained in:
Lilian Jónsdóttir 2024-07-28 18:29:55 -07:00
parent dc27974950
commit ea12273da7

View file

@ -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