mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-30 06:51:30 +02:00
core/logs: remove warnings
This commit is contained in:
parent
98cea10421
commit
0da3d1098f
32 changed files with 70 additions and 78 deletions
|
@ -55,7 +55,7 @@ func (a *Authorize) Check(ctx context.Context, in *envoy_service_auth_v3.CheckRe
|
|||
if sessionState != nil {
|
||||
s, err = a.getDataBrokerSessionOrServiceAccount(ctx, sessionState.ID, sessionState.DatabrokerRecordVersion)
|
||||
if err != nil {
|
||||
log.Warn(ctx).Err(err).Msg("clearing session due to missing or invalid session or service account")
|
||||
log.Info(ctx).Err(err).Msg("clearing session due to missing or invalid session or service account")
|
||||
sessionState = nil
|
||||
}
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ func (a *Authorize) Check(ctx context.Context, in *envoy_service_auth_v3.CheckRe
|
|||
|
||||
req, err := a.getEvaluatorRequestFromCheckRequest(ctx, in, sessionState)
|
||||
if err != nil {
|
||||
log.Warn(ctx).Err(err).Msg("error building evaluator request")
|
||||
log.Error(ctx).Err(err).Msg("error building evaluator request")
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
@ -194,7 +194,7 @@ func getClientCertificateInfo(
|
|||
|
||||
chain, err := url.QueryUnescape(escapedChain)
|
||||
if err != nil {
|
||||
log.Warn(ctx).Str("chain", escapedChain).Err(err).
|
||||
log.Info(ctx).Str("chain", escapedChain).Err(err).
|
||||
Msg(`received unexpected client certificate "chain" value`)
|
||||
return c
|
||||
}
|
||||
|
@ -202,7 +202,7 @@ func getClientCertificateInfo(
|
|||
// Split the chain into the leaf and any intermediate certificates.
|
||||
p, rest := pem.Decode([]byte(chain))
|
||||
if p == nil {
|
||||
log.Warn(ctx).Str("chain", escapedChain).
|
||||
log.Info(ctx).Str("chain", escapedChain).
|
||||
Msg(`received unexpected client certificate "chain" value (no PEM block found)`)
|
||||
return c
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue