From 2028b03e1d69b7b92b04f1849c4bc178f4f93d09 Mon Sep 17 00:00:00 2001 From: Aaron Gable Date: Tue, 9 Jul 2024 13:45:02 -0700 Subject: [PATCH] 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. --- wfe2/wfe.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wfe2/wfe.go b/wfe2/wfe.go index 40f4223ce..708fbad94 100644 --- a/wfe2/wfe.go +++ b/wfe2/wfe.go @@ -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