From 6ee903691a053d4b3bbaea3897eaedbb09d35a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Fri, 26 Apr 2024 15:26:05 +0100 Subject: [PATCH] chore: Additional logging for Uniform attachArchieve endpoint (#3060) --- api.planx.uk/modules/send/uniform/uniform.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api.planx.uk/modules/send/uniform/uniform.ts b/api.planx.uk/modules/send/uniform/uniform.ts index ce8e6b2dda..64538574c4 100644 --- a/api.planx.uk/modules/send/uniform/uniform.ts +++ b/api.planx.uk/modules/send/uniform/uniform.ts @@ -309,6 +309,12 @@ async function attachArchive( const response = await axios.request(attachArchiveConfig); // successful upload returns 204 No Content without body const isSuccess = response.status === 204; + + // Temp additional logging to debug failures + console.log("*** Uniform attachArchive response ***"); + console.log(JSON.stringify(response, null, 2)); + console.log("******"); + return isSuccess; }