From 6c6913fae290038ff4beaf523325d392b55f00e8 Mon Sep 17 00:00:00 2001 From: Sergey Konovalov Date: Thu, 21 Nov 2024 11:08:11 +0300 Subject: [PATCH] [log] Log wholeCycle timeout value --- Common/sources/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/sources/utils.js b/Common/sources/utils.js index 9c15ac56..16b8556f 100644 --- a/Common/sources/utils.js +++ b/Common/sources/utils.js @@ -458,7 +458,7 @@ function downloadUrlPromiseWithoutRedirect(ctx, uri, optTimeout, optLimit, opt_A .on('error', fError); if (optTimeout && optTimeout.wholeCycle) { timeoutId = setTimeout(function() { - raiseError(ro, 'ETIMEDOUT', 'Error: whole request cycle timeout'); + raiseError(ro, 'ETIMEDOUT', `Error: whole request cycle timeout: ${optTimeout.wholeCycle}`); }, ms(optTimeout.wholeCycle)); } }); @@ -526,7 +526,7 @@ function postRequestPromise(ctx, uri, postData, postDataStream, postDataSize, op }); if (optTimeout && optTimeout.wholeCycle) { setTimeout(function() { - raiseError(ro, 'ETIMEDOUT', 'Error whole request cycle timeout'); + raiseError(ro, 'ETIMEDOUT', `Error: whole request cycle timeout: ${optTimeout.wholeCycle}`); }, ms(optTimeout.wholeCycle)); } if (postDataStream && !postData) {