mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 08:50:42 +02:00
core/logs: remove warnings (#5235)
* core/logs: remove warnings * switch to error
This commit is contained in:
parent
556b2e0d73
commit
d062f9d68d
32 changed files with 70 additions and 78 deletions
|
@ -36,7 +36,7 @@ func (h sessionSyncerHandler) UpdateRecords(ctx context.Context, _ uint64, recor
|
|||
var s session.Session
|
||||
err := record.Data.UnmarshalTo(&s)
|
||||
if err != nil {
|
||||
log.Ctx(ctx).Warn().Err(err).Msg("invalid data in session record, ignoring")
|
||||
log.Ctx(ctx).Error().Err(err).Msg("invalid data in session record, ignoring")
|
||||
} else {
|
||||
h.mgr.onUpdateSession(h.baseCtx, &s)
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ func (h userSyncerHandler) UpdateRecords(ctx context.Context, _ uint64, records
|
|||
var u user.User
|
||||
err := record.Data.UnmarshalTo(&u)
|
||||
if err != nil {
|
||||
log.Ctx(ctx).Warn().Err(err).Msg("invalid data in user record, ignoring")
|
||||
log.Ctx(ctx).Error().Err(err).Msg("invalid data in user record, ignoring")
|
||||
} else {
|
||||
h.mgr.onUpdateUser(h.baseCtx, &u)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue