From 488be3285f6134ebe1f9d6d411c95314f23acf7f Mon Sep 17 00:00:00 2001 From: Rajaneeshkumar Date: Tue, 20 Feb 2024 15:50:58 +0530 Subject: [PATCH] Adding logs to retry mechanism --- package-lock.json | 4 ++-- package.json | 2 +- src/models/Tosser.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index ab4ca50..9965a2e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pactum", - "version": "3.6.0", + "version": "3.6.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pactum", - "version": "3.6.0", + "version": "3.6.1", "license": "MIT", "dependencies": { "@exodus/schemasafe": "^1.2.3", diff --git a/package.json b/package.json index d4cb9e2..b7c6193 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pactum", - "version": "3.6.0", + "version": "3.6.1", "description": "REST API Testing Tool for all levels in a Test Pyramid", "main": "./src/index.js", "types": "./src/index.d.ts", diff --git a/src/models/Tosser.js b/src/models/Tosser.js index ed097cd..3b0856e 100644 --- a/src/models/Tosser.js +++ b/src/models/Tosser.js @@ -103,7 +103,7 @@ class Tosser { } if (!noRetry) { const scale = delay === 1000 ? 'second' : 'seconds'; - log.debug(`Retrying request in ${delay / 1000} ${scale}`); + log.info(`Request retry initiated, waiting ${delay / 1000} ${scale} for attempt ${i + 1} of ${count}`); await helper.sleep(delay); this.response = await getResponse(this); } else {