Explorar o código

Report downloading errors only when IMGPROXY_REPORT_DOWNLOADING_ERRORS is true

DarthSim %!s(int64=3) %!d(string=hai) anos
pai
achega
d8dae48c4f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
 		}