cleaned up SetLoggingLevel

This commit is contained in:
2022-12-10 23:42:39 -05:00
parent 81343248b8
commit 6e0670d7f2

View File

@@ -190,9 +190,6 @@ func (ll *LevelLogger) SetFlags(logname string, newFlags int) {
}
func (ll *LevelLogger) SetLoggingLevel(l int) {
if l < 0 || l > 8 {
ll.CurrentLevel = 4 // default
} else {
switch l {
case 0:
ll.CurrentLevel = LevelLoggerOff
@@ -215,7 +212,6 @@ func (ll *LevelLogger) SetLoggingLevel(l int) {
default:
ll.CurrentLevel = InfoLevel
}
}
}
func (ll *LevelLogger) Blank(n int) {