Use output given to NewLogger
Previously the output param was ignored
This commit is contained in:
parent
ce19f76673
commit
ac01ac0143
@ -60,7 +60,7 @@ func (l logger) Debugf(format string, v ...interface{}) {
|
|||||||
|
|
||||||
func NewLogger(out io.Writer, debug bool) Logger {
|
func NewLogger(out io.Writer, debug bool) Logger {
|
||||||
return logger{
|
return logger{
|
||||||
Logger: log.New(log.Writer(), "", log.LstdFlags),
|
Logger: log.New(out, "", log.LstdFlags),
|
||||||
debug: debug,
|
debug: debug,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user