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:
Renan DelValle 2018-06-22 12:37:54 -07:00
parent 2f88701c9c
commit 1535c74b02
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
3 changed files with 17 additions and 9 deletions

View file

@ -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] ")