mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-04 10:28:10 +02:00
fix nil session error
This commit is contained in:
parent
a8efb5901e
commit
e21dc6fbc3
1 changed files with 5 additions and 0 deletions
|
@ -339,6 +339,11 @@ func (mgr *Manager) deleteSession(ctx context.Context, sessionID string) {
|
|||
})
|
||||
if status.Code(err) == codes.NotFound {
|
||||
return
|
||||
} else if err != nil {
|
||||
log.Ctx(ctx).Error().Err(err).
|
||||
Str("session_id", sessionID).
|
||||
Msg("failed to delete session")
|
||||
return
|
||||
}
|
||||
|
||||
record := res.GetRecord()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue