Skip to content

Commit

Permalink
Add error type in the warning log for debugging
Browse files Browse the repository at this point in the history
Relates to #270
  • Loading branch information
enobufs committed Dec 30, 2023
1 parent 50663b9 commit 5d35305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion association.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ loop:
_, err := a.netConn.Write(raw)
if err != nil {
if !errors.Is(err, io.EOF) {
a.log.Warnf("[%s] failed to write packets on netConn: %v", a.name, err)
a.log.Warnf("[%s] failed to write packets on netConn: %v (%T)", a.name, err, err)
}
a.log.Debugf("[%s] writeLoop ended", a.name)
break loop
Expand Down

0 comments on commit 5d35305

Please sign in to comment.