Only audit log internal server errors in WFE

This commit is contained in:
Roland Shoemaker 2015-06-03 18:11:19 +01:00
parent b20fc4b014
commit ce84a4c31a
1 changed files with 1 additions and 8 deletions

View File

@ -225,16 +225,9 @@ func (wfe *WebFrontEndImpl) sendError(response http.ResponseWriter, details stri
problemDoc = []byte("{\"detail\": \"Problem marshalling error message.\"}") problemDoc = []byte("{\"detail\": \"Problem marshalling error message.\"}")
} }
switch problem.Type { if problem.Type == ServerInternalProblem {
case ServerInternalProblem:
// AUDIT[ Error Conditions ] 9cc4d537-8534-4970-8665-4b382abe82f3 // AUDIT[ Error Conditions ] 9cc4d537-8534-4970-8665-4b382abe82f3
wfe.log.Audit(fmt.Sprintf("Internal error - %s - %s", details, debug)) wfe.log.Audit(fmt.Sprintf("Internal error - %s - %s", details, debug))
case MalformedProblem:
// AUDIT[ Improper Messages ] 0786b6f2-91ca-4f48-9883-842a19084c64
wfe.log.Audit(fmt.Sprintf("Improper HTTP request - %s - %s", details, debug))
case UnauthorizedProblem:
// AUDIT[ Improper Messages ] 0786b6f2-91ca-4f48-9883-842a19084c64
wfe.log.Audit(fmt.Sprintf("Unauthorized HTTP request - %s - %s", details, debug))
} }
// Paraphrased from // Paraphrased from