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:
		
							parent
							
								
									26ca09284a
								
							
						
					
					
						commit
						2028b03e1d
					
				|  | @ -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
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue