Skip to content

Commit

Permalink
Change verbosity level
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Jun 17, 2024
1 parent 8cbfe08 commit 1551505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x509.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func x509RequestHandler(w http.ResponseWriter, r *http.Request) {
r.Header.Set("Cms-Auth-Cert", dn.(string))
}
}
if Config.Verbose > 0 {
if Config.Verbose > 1 {
printHTTPRequest(r, "cms headers")
}
// add LogRequest after we set cms headers in HTTP request
Expand All @@ -69,7 +69,7 @@ func x509RequestHandler(w http.ResponseWriter, r *http.Request) {

// check CMS headers
authStatus := CMSAuth.CheckAuthnAuthz(r.Header)
if Config.Verbose > 0 {
if Config.Verbose > 1 {
log.Println("x509RequestHandler", r.Header, authStatus)
}
if authStatus {
Expand Down

0 comments on commit 1551505

Please sign in to comment.