Преглед изворни кода

Report downloading errors only when IMGPROXY_REPORT_DOWNLOADING_ERRORS is true

DarthSim пре 3 година
родитељ
комит
d8dae48c4f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      processing_handler.go

+ 1 - 1
processing_handler.go

@@ -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)
 		}