Turning off debug mode for tests because it's too verbose. Making sure LevelLogger is initialized correctly under all scenarios.
This commit is contained in:
parent
2f88701c9c
commit
1535c74b02
3 changed files with 17 additions and 9 deletions
|
@ -33,6 +33,10 @@ type LevelLogger struct {
|
|||
debug bool
|
||||
}
|
||||
|
||||
func (l *LevelLogger) EnableDebug(enable bool) {
|
||||
l.debug = enable
|
||||
}
|
||||
|
||||
func (l LevelLogger) DebugPrintf(format string, a ...interface{}) {
|
||||
if l.debug {
|
||||
l.Print("[DEBUG] ")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue