Increase verbosity for warning messages

This commit is contained in:
tidwall 2021-10-01 07:45:37 -07:00
parent 26f9678ba0
commit a3c808e97f
1 changed files with 2 additions and 2 deletions

View File

@ -112,14 +112,14 @@ func Error(args ...interface{}) {
// Warnf ... // Warnf ...
func Warnf(format string, args ...interface{}) { func Warnf(format string, args ...interface{}) {
if Level >= 2 { if Level >= 1 {
log(2, "WARN", "\x1b[33m", true, format, args...) log(2, "WARN", "\x1b[33m", true, format, args...)
} }
} }
// Warn ... // Warn ...
func Warn(args ...interface{}) { func Warn(args ...interface{}) {
if Level >= 2 { if Level >= 1 {
log(2, "WARN", "\x1b[33m", false, emptyFormat, args...) log(2, "WARN", "\x1b[33m", false, emptyFormat, args...)
} }
} }