From 74a30269634a59efc4a5dbd36a95d2ede8724922 Mon Sep 17 00:00:00 2001 From: cthuang Date: Thu, 23 Dec 2021 11:42:00 +0000 Subject: [PATCH] TUN-5597: Log session ID when session is terminated by edge --- connection/quic.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/connection/quic.go b/connection/quic.go index d6c738aa..579f5196 100644 --- a/connection/quic.go +++ b/connection/quic.go @@ -198,10 +198,8 @@ func (q *QUICConnection) serveUDPSession(session *datagramsession.Session, close } else { q.closeUDPSession(ctx, session.ID, "terminated without error") } - q.logger.Debug().Err(err).Str("sessionID", session.ID.String()).Msg("session terminated") - return } - q.logger.Debug().Err(err).Msg("Session terminated by edge") + q.logger.Debug().Err(err).Str("sessionID", session.ID.String()).Msg("Session terminated") } // closeUDPSession first unregisters the session from session manager, then it tries to unregister from edge