Suppress boring nonce log events (#7576)

Requests to the new-nonce endpoint make up about 20% of our WFE log
lines, but they're uninteresting and largely useless for debugging.
Suppress the log event for successful requests to reduce our log volume.
This commit is contained in:
Aaron Gable 2024-07-09 13:45:02 -07:00 committed by GitHub
parent 26ca09284a
commit 2028b03e1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -598,6 +598,9 @@ func (wfe *WebFrontEndImpl) Nonce(
// field with the "no-store" directive in responses for the newNonce resource,
// in order to prevent caching of this resource.
response.Header().Set("Cache-Control", "no-store")
// No need to log successful nonce requests, they're boring.
logEvent.Suppress()
}
// sendError wraps web.SendError