cleaned up SetLoggingLevel
This commit is contained in:
@@ -190,9 +190,6 @@ func (ll *LevelLogger) SetFlags(logname string, newFlags int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ll *LevelLogger) SetLoggingLevel(l int) {
|
func (ll *LevelLogger) SetLoggingLevel(l int) {
|
||||||
if l < 0 || l > 8 {
|
|
||||||
ll.CurrentLevel = 4 // default
|
|
||||||
} else {
|
|
||||||
switch l {
|
switch l {
|
||||||
case 0:
|
case 0:
|
||||||
ll.CurrentLevel = LevelLoggerOff
|
ll.CurrentLevel = LevelLoggerOff
|
||||||
@@ -215,7 +212,6 @@ func (ll *LevelLogger) SetLoggingLevel(l int) {
|
|||||||
default:
|
default:
|
||||||
ll.CurrentLevel = InfoLevel
|
ll.CurrentLevel = InfoLevel
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ll *LevelLogger) Blank(n int) {
|
func (ll *LevelLogger) Blank(n int) {
|
||||||
|
|||||||
Reference in New Issue
Block a user