Skip to content

Commit 7747edb

Browse files
committed
conn.go: Log the correct error on connection closure
1 parent 241017b commit 7747edb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func (conn *Conn) remoteAddr() *Addr {
248248
func (conn *Conn) close(cause error) (err error) {
249249
conn.once.Do(func() {
250250
if cause != nil {
251-
conn.log.Error("connection is closing with a cause", slog.Any("cause", err))
251+
conn.log.Debug("connection is closing with a cause", slog.Any("cause", cause))
252252
}
253253
conn.cancel(cause)
254254
conn.negotiator.handleClose(conn)

0 commit comments

Comments
 (0)