Skip to content

Commit

Permalink
fix(messenger/router): use proper logger
Browse files Browse the repository at this point in the history
  • Loading branch information
mgjules committed Apr 11, 2022
1 parent a53d2b0 commit 24851c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions messenger/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"errors"
"fmt"
"log"
"time"

"github.com/JulesMike/spoty/config"
Expand Down Expand Up @@ -54,7 +53,7 @@ func NewRouter(
health: health,
}

wlog := watermill.NewStdLoggerWithOut(log.Writer(), !cfg.Prod, false)
wlog := watermill.NewStdLoggerWithOut(logger.Writer(), !cfg.Prod, false)

router, err := message.NewRouter(message.RouterConfig{}, wlog)
if err != nil {
Expand Down

0 comments on commit 24851c7

Please sign in to comment.