remove debug
This commit is contained in:
0
level_test.go
Normal file → Executable file
0
level_test.go
Normal file → Executable file
7
logb.go
Normal file → Executable file
7
logb.go
Normal file → Executable file
@@ -85,6 +85,9 @@ func logf(lvl Level, form string, args ...interface{}) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
form = fmt.Sprintf("[%v] %s\n", lvl.String()[:3], form)
|
form = fmt.Sprintf("[%v] %s\n", lvl.String()[:3], form)
|
||||||
fmt.Fprintf(os.Stderr, "stderr: "+form, args...)
|
if writer != os.Stderr {
|
||||||
fmt.Fprintf(writer, form, args...)
|
fmt.Fprintf(writer, form, args...)
|
||||||
|
} else {
|
||||||
|
fmt.Fprintf(os.Stderr, form, args...)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
0
logb_test.go
Normal file → Executable file
0
logb_test.go
Normal file → Executable file
Reference in New Issue
Block a user