mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-17 11:07:18 +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
|
@ -232,7 +232,7 @@ func (s *Stateless) PersistSession(
|
|||
}
|
||||
err = storeIdentityProfile(w, s.options.NewCookie(), s.cookieCipher, profile)
|
||||
if err != nil {
|
||||
log.Error(ctx).Err(err).Msg("failed to store identity profile")
|
||||
log.Ctx(ctx).Error().Err(err).Msg("failed to store identity profile")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
@ -293,7 +293,7 @@ func (s *Stateless) logAuthenticateEvent(r *http.Request, profile *identitypb.Pr
|
|||
ctx := r.Context()
|
||||
pub, params, err := hpke.DecryptURLValues(s.hpkePrivateKey, r.Form)
|
||||
if err != nil {
|
||||
log.Error(ctx).Err(err).Msg("log authenticate event: failed to decrypt request params")
|
||||
log.Ctx(ctx).Error().Err(err).Msg("log authenticate event: failed to decrypt request params")
|
||||
}
|
||||
|
||||
evt := events.AuthEvent{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue