1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-03-27 20:30:27 +02:00

Report downloading errors only when IMGPROXY_REPORT_DOWNLOADING_ERRORS is true

This commit is contained in:
DarthSim 2021-11-01 20:03:19 +06:00
parent a3f6fe6d39
commit d8dae48c4f

View File

@ -227,7 +227,7 @@ func handleProcessing(reqID string, rw http.ResponseWriter, r *http.Request) {
if ierrok {
statusCode = ierr.StatusCode
}
if !ierrok || ierr.Unexpected || config.ReportDownloadingErrors {
if config.ReportDownloadingErrors && (!ierrok || ierr.Unexpected) {
errorreport.Report(err, r)
}