🔊 Add auth context cache miss log
This commit is contained in:
parent
9cda542b01
commit
3d58ff2391
@ -42,6 +42,7 @@ func GetAuthContext(sessionId uint) (models.AuthTicket, error) {
|
|||||||
if val, err := cachekit.Get[models.AuthTicket](gap.Ca, key); err == nil {
|
if val, err := cachekit.Get[models.AuthTicket](gap.Ca, key); err == nil {
|
||||||
ctx = val
|
ctx = val
|
||||||
} else {
|
} else {
|
||||||
|
log.Error().Err(err).Msg("Unable to get auth context cache")
|
||||||
ctx, err = CacheAuthContext(sessionId)
|
ctx, err = CacheAuthContext(sessionId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error().Err(err).Msg("Unable to cache auth context")
|
log.Error().Err(err).Msg("Unable to cache auth context")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user