mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-01 18:33:19 +02:00
log context (#2107)
This commit is contained in:
parent
e7995954ff
commit
e0c09a0998
87 changed files with 714 additions and 524 deletions
|
@ -1,6 +1,7 @@
|
|||
package evaluator
|
||||
|
||||
import (
|
||||
"context"
|
||||
"crypto/x509"
|
||||
"encoding/pem"
|
||||
"fmt"
|
||||
|
@ -46,7 +47,7 @@ func isValidClientCertificate(ca, cert string) (bool, error) {
|
|||
valid := verifyErr == nil
|
||||
|
||||
if verifyErr != nil {
|
||||
log.Debug().Err(verifyErr).Msg("client certificate failed verification: %w")
|
||||
log.Debug(context.Background()).Err(verifyErr).Msg("client certificate failed verification: %w")
|
||||
}
|
||||
|
||||
isValidClientCertificateCache.Add(cacheKey, valid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue