Skip to content

Commit

Permalink
Log basic unexpected EOF from transport with WARN level
Browse files Browse the repository at this point in the history
  • Loading branch information
ghettovoice committed Oct 3, 2024
1 parent 24d12c0 commit 3b1c5a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (srv *server) serve() {
var ferr *sip.MalformedMessageError
if errors.Is(err, io.EOF) || errors.Is(err, io.ErrClosedPipe) {
srv.Log().Debugf("received SIP transport error: %s", err)
} else if errors.As(err, &ferr) {
} else if errors.Is(err, io.ErrUnexpectedEOF) || errors.As(err, &ferr) {
srv.Log().Warnf("received SIP transport error: %s", err)
} else {
srv.Log().Errorf("received SIP transport error: %s", err)
Expand Down

0 comments on commit 3b1c5a6

Please sign in to comment.