mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 00:40:25 +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
|
@ -400,7 +400,7 @@ func (backend *Backend) doPeriodically(f func(ctx context.Context) error, dur ti
|
|||
}
|
||||
} else {
|
||||
if !errors.Is(err, context.Canceled) {
|
||||
log.Error(ctx).Err(err).Msg("storage/postgres")
|
||||
log.Ctx(ctx).Error().Err(err).Msg("storage/postgres")
|
||||
}
|
||||
select {
|
||||
case <-backend.closeCtx.Done():
|
||||
|
|
|
@ -57,7 +57,7 @@ func MatchAny(any *anypb.Any, query string) bool {
|
|||
msg, err := any.UnmarshalNew()
|
||||
if err != nil {
|
||||
// ignore invalid any types
|
||||
log.Error(context.TODO()).Err(err).Msg("storage: invalid any type")
|
||||
log.Error().Err(err).Msg("storage: invalid any type")
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue