mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 16:59:22 +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
|
@ -199,7 +199,7 @@ func (mgr *Manager) refreshSession(ctx context.Context, sessionID string) {
|
|||
mgr.mu.Unlock()
|
||||
|
||||
if s == nil {
|
||||
log.Ctx(ctx).Warn().
|
||||
log.Ctx(ctx).Info().
|
||||
Str("user_id", u.GetId()).
|
||||
Str("session_id", sessionID).
|
||||
Msg("no session found for refresh")
|
||||
|
@ -227,7 +227,7 @@ func (mgr *Manager) refreshSession(ctx context.Context, sessionID string) {
|
|||
}
|
||||
|
||||
if s.GetOauthToken() == nil {
|
||||
log.Warn(ctx).
|
||||
log.Info(ctx).
|
||||
Str("user_id", s.GetUserId()).
|
||||
Str("session_id", s.GetId()).
|
||||
Msg("no session oauth2 token found for refresh")
|
||||
|
@ -290,7 +290,7 @@ func (mgr *Manager) updateUserInfo(ctx context.Context, userID string) {
|
|||
mgr.mu.Unlock()
|
||||
|
||||
if u == nil {
|
||||
log.Ctx(ctx).Warn().
|
||||
log.Ctx(ctx).Error().
|
||||
Str("user_id", userID).
|
||||
Msg("no user found for update")
|
||||
return
|
||||
|
@ -298,7 +298,7 @@ func (mgr *Manager) updateUserInfo(ctx context.Context, userID string) {
|
|||
|
||||
for _, s := range ss {
|
||||
if s.GetOauthToken() == nil {
|
||||
log.Ctx(ctx).Warn().
|
||||
log.Ctx(ctx).Error().
|
||||
Str("user_id", s.GetUserId()).
|
||||
Str("session_id", s.GetId()).
|
||||
Msg("no session oauth2 token found for updating user info")
|
||||
|
|
|
@ -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