fix NewEmptyLogger

for #151.
Dumb bug, I really need unit tests.
pull/163/head
Harvey Tindall 3 years ago
parent b29c24a405
commit a220ba8dfb
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -60,7 +60,12 @@ func NewLogger(out io.Writer, prefix string, flag int, color c.Attribute) (l *Lo
return l
}
func NewEmptyLogger() (l *Logger) { l.empty = true; return }
func NewEmptyLogger() (l *Logger) {
l = &Logger{
empty: true,
}
return
}
func (l *Logger) Printf(format string, v ...interface{}) {
if l.empty {

Loading…
Cancel
Save