mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-11 04:32:29 +02:00
Report downloading errors only when IMGPROXY_REPORT_DOWNLOADING_ERRORS is true
This commit is contained in:
@@ -227,7 +227,7 @@ func handleProcessing(reqID string, rw http.ResponseWriter, r *http.Request) {
|
|||||||
if ierrok {
|
if ierrok {
|
||||||
statusCode = ierr.StatusCode
|
statusCode = ierr.StatusCode
|
||||||
}
|
}
|
||||||
if !ierrok || ierr.Unexpected || config.ReportDownloadingErrors {
|
if config.ReportDownloadingErrors && (!ierrok || ierr.Unexpected) {
|
||||||
errorreport.Report(err, r)
|
errorreport.Report(err, r)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user