TUN-5597: Log session ID when session is terminated by edge

This commit is contained in:
cthuang 2021-12-23 11:42:00 +00:00
parent 8445b88d3c
commit 74a3026963
1 changed files with 1 additions and 3 deletions

View File

@ -198,10 +198,8 @@ func (q *QUICConnection) serveUDPSession(session *datagramsession.Session, close
} else { } else {
q.closeUDPSession(ctx, session.ID, "terminated without error") 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 // closeUDPSession first unregisters the session from session manager, then it tries to unregister from edge