From 83d835afe5b795a08f7c8415eefc6a5bfbb8e739 Mon Sep 17 00:00:00 2001 From: shulkaolka Date: Thu, 31 Oct 2024 16:14:58 +0200 Subject: [PATCH] update Retry msg with error details --- templates/lib/utils/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/lib/utils/helpers.js b/templates/lib/utils/helpers.js index 6b7f977..1695f02 100644 --- a/templates/lib/utils/helpers.js +++ b/templates/lib/utils/helpers.js @@ -27,9 +27,9 @@ const executeSwaggerCall = async function (callParams) { error.status && (error.status > 499 || error.status === 429) ) { - this.logger.info( + this.logger.error( `Received response status: ${error.status}. Attempt #${currentAttempt}. Retrying in ${operation._originalTimeouts[currentAttempt - 1] - } ms...` + } ms... Error details: ${error}` ); return; }