Skip to content

Commit

Permalink
fix: log setter overwrite
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Buchleitner <[email protected]>
  • Loading branch information
mabunixda committed Sep 4, 2024
1 parent f82b7ed commit 2f0ed08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wattpilot.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func New(host string, password string) *Wattpilot {
}
func (w *Wattpilot) SetLogger(logger *log.Logger) {
w.logger.Out = logger.Writer()
// w.logger.SetOutput(logger)
w.logger.SetFormatter(&logrus.TextFormatter{})
}

func (w *Wattpilot) SetLogLevel(level logrus.Level) {
Expand Down

0 comments on commit 2f0ed08

Please sign in to comment.