Skip to content

Commit 74a3026

Browse files
committed
TUN-5597: Log session ID when session is terminated by edge
1 parent 8445b88 commit 74a3026

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

connection/quic.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,8 @@ func (q *QUICConnection) serveUDPSession(session *datagramsession.Session, close
198198
} else {
199199
q.closeUDPSession(ctx, session.ID, "terminated without error")
200200
}
201-
q.logger.Debug().Err(err).Str("sessionID", session.ID.String()).Msg("session terminated")
202-
return
203201
}
204-
q.logger.Debug().Err(err).Msg("Session terminated by edge")
202+
q.logger.Debug().Err(err).Str("sessionID", session.ID.String()).Msg("Session terminated")
205203
}
206204

207205
// closeUDPSession first unregisters the session from session manager, then it tries to unregister from edge

0 commit comments

Comments
 (0)