Skip to content

Commit

Permalink
[log] Log wholeCycle timeout value
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed Nov 21, 2024
1 parent b8f95f3 commit 6c6913f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common/sources/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
});
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 6c6913f

Please sign in to comment.