From 34fb0771dc2616bc2f3595d50e100e28f0a0a7c0 Mon Sep 17 00:00:00 2001 From: Point5Nyble Date: Thu, 14 Mar 2024 20:32:27 +0530 Subject: [PATCH] added additonal logs for image uplaod failure. --- routes/images-endpoint.js | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/images-endpoint.js b/routes/images-endpoint.js index 5bc107c..36fa7ac 100644 --- a/routes/images-endpoint.js +++ b/routes/images-endpoint.js @@ -52,6 +52,7 @@ router.route('/upload') return; } var result = await uploadBlob.uploadFile(newcontainerName, filetoUpload.originalname, filetoUpload.path, uploadOptions); + console.log(`Trying to create and upload in ${containerName}: ${result}`); var response = JSON.parse(result); if (response.error) { errResponse = new ErrorResponse(500, 'Internal server error', result.error);