everyone uses the new logger

stamping
Nick Dumas 1 year ago
parent 2447914517
commit 605d728f83

@ -8,7 +8,6 @@ import (
"net" "net"
"os" "os"
"github.com/ThreeDotsLabs/watermill"
"github.com/ThreeDotsLabs/watermill/message" "github.com/ThreeDotsLabs/watermill/message"
"github.com/ThreeDotsLabs/watermill/message/router/middleware" "github.com/ThreeDotsLabs/watermill/message/router/middleware"
"github.com/ThreeDotsLabs/watermill/message/router/plugin" "github.com/ThreeDotsLabs/watermill/message/router/plugin"
@ -34,7 +33,6 @@ func main() {
log.Fatalf("error binding to port %d\n: %s", port, err) log.Fatalf("error binding to port %d\n: %s", port, err)
} }
defer l.Close() defer l.Close()
wmLogger := watermill.NewStdLogger(false, false)
traceFile, err := os.OpenFile("trace.log", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644) traceFile, err := os.OpenFile("trace.log", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644)
if err != nil { if err != nil {
@ -67,7 +65,7 @@ func main() {
middleware.Recoverer, middleware.Recoverer,
) )
pubSub := gochannel.NewGoChannel(gochannel.Config{}, wmLogger) pubSub := gochannel.NewGoChannel(gochannel.Config{}, wrappedSlogger)
ctx := context.Background() ctx := context.Background()
ts := telnet.NewTELNETServer(ctx, l, pubSub, wrappedSlogger) ts := telnet.NewTELNETServer(ctx, l, pubSub, wrappedSlogger)

Loading…
Cancel
Save