Skip to content

Commit

Permalink
server: log accept conn error as debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
joshi4 committed Mar 7, 2024
1 parent 4a0e180 commit 2d6abb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/unix_socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"io"
"log/slog"
"net"
"os"
"sync"
Expand Down Expand Up @@ -71,7 +72,7 @@ func (s *UnixSocketServer) ListenAndServe() {
if s.closed.Load() {
return
}
fmt.Printf("Failed to accept connection: %s\n", err)
slog.Debug("Failed to accept connection:", "error", err.Error())
continue
}

Expand Down

0 comments on commit 2d6abb2

Please sign in to comment.