From fb78e1d848594136a4c5766ae4a420b660ad07bb Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Wed, 23 Oct 2024 21:35:29 -0700 Subject: [PATCH] tskagent: use the correct logger in more places --- tskagent.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tskagent.go b/tskagent.go index b20dc8c..2a87c35 100644 --- a/tskagent.go +++ b/tskagent.go @@ -82,14 +82,14 @@ func (s *Server) Serve(ctx context.Context, lst net.Listener) { var g taskgroup.Group g.Run(func() { <-ctx.Done() - log.Printf("Signal received; closing listener") + s.logPrintf("Signal received; closing listener") lst.Close() }) for { conn, err := lst.Accept() if err != nil { if !errors.Is(err, net.ErrClosed) { - log.Printf("Listener stopped: %v", err) + s.logPrintf("Listener stopped: %v", err) } break }