mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-04-01 20:34:23 +02:00
Report downloading errors only when IMGPROXY_REPORT_DOWNLOADING_ERRORS is true
This commit is contained in:
parent
a3f6fe6d39
commit
d8dae48c4f
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user