Use output given to NewLogger

Previously the output param was ignored
This commit is contained in:
Reto Brunner 2022-08-02 10:09:36 +02:00 committed by Simon Ser
parent ce19f76673
commit ac01ac0143
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ func (l logger) Debugf(format string, v ...interface{}) {
func NewLogger(out io.Writer, debug bool) Logger {
return logger{
Logger: log.New(log.Writer(), "", log.LstdFlags),
Logger: log.New(out, "", log.LstdFlags),
debug: debug,
}
}