From 911dd7dde68177f62fc68feed27ac1720c63deaa Mon Sep 17 00:00:00 2001 From: sylvain-morin Date: Fri, 9 Feb 2024 21:17:08 +0100 Subject: [PATCH] Debug --- lib/controllers/v1/computervision_controller.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/controllers/v1/computervision_controller.js b/lib/controllers/v1/computervision_controller.js index fd04652c..7836a80f 100644 --- a/lib/controllers/v1/computervision_controller.js +++ b/lib/controllers/v1/computervision_controller.js @@ -200,21 +200,12 @@ const ComputervisionController = class ComputervisionController { }, 5000 ); let json; try { - console.log("SCORE IMAGE PATH"); - console.log("config.imageProcesing.tensorappURL="+config.imageProcesing.tensorappURL); - console.log("formData="+JSON.stringify(formData)); - console.log("signal="+JSON.stringify(requestAbortController.signal)); - const response = await fetch( config.imageProcesing.tensorappURL, { method: "POST", body: formData, signal: requestAbortController.signal } ); if ( !response.ok ) { - console.log("SCORE IMAGE PATH RESPONSE:"); - console.log("response="+JSON.stringify(response)); - console.log("response.body="+JSON.stringify(response.body)); - throw util.httpError( 500, "Error scoring image" ); } json = await response.json( );