Skip to content

Commit

Permalink
tskagent: use the correct logger in more places
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair authored Oct 24, 2024
1 parent e836442 commit fb78e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tskagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit fb78e1d

Please sign in to comment.