mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 16:59:22 +02:00
core/logging: change log.Error function (#5251)
* core/logging: change log.Error function * use request id
This commit is contained in:
parent
97bf5edc54
commit
dad954ae16
66 changed files with 163 additions and 166 deletions
|
@ -70,7 +70,7 @@ func (tracker *AccessTracker) Run(ctx context.Context) {
|
|||
}
|
||||
runSubmit := func() {
|
||||
if dropped := atomic.SwapInt64(&tracker.droppedAccesses, 0); dropped > 0 {
|
||||
log.Error(ctx).
|
||||
log.Ctx(ctx).Error().
|
||||
Int64("dropped", dropped).
|
||||
Msg("authorize: failed to track all session accesses")
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ func (tracker *AccessTracker) Run(ctx context.Context) {
|
|||
return err == nil
|
||||
})
|
||||
if err != nil {
|
||||
log.Error(ctx).Err(err).Msg("authorize: error updating session last access timestamp")
|
||||
log.Ctx(ctx).Error().Err(err).Msg("authorize: error updating session last access timestamp")
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ func (tracker *AccessTracker) Run(ctx context.Context) {
|
|||
return err == nil
|
||||
})
|
||||
if err != nil {
|
||||
log.Error(ctx).Err(err).Msg("authorize: error updating service account last access timestamp")
|
||||
log.Ctx(ctx).Error().Err(err).Msg("authorize: error updating service account last access timestamp")
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue