mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-10 12:12:40 +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 {
|
||||
statusCode = ierr.StatusCode
|
||||
}
|
||||
if !ierrok || ierr.Unexpected || config.ReportDownloadingErrors {
|
||||
if config.ReportDownloadingErrors && (!ierrok || ierr.Unexpected) {
|
||||
errorreport.Report(err, r)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user