Only audit log internal server errors in WFE
This commit is contained in:
parent
b20fc4b014
commit
ce84a4c31a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue