mirror of
https://github.com/nick-fields/retry.git
synced 2026-02-09 14:48:02 +00:00
fix: fixed debug logging
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -474,8 +474,8 @@ async function runCmd() {
|
||||
async function retryWait() {
|
||||
const waitStart = Date.now();
|
||||
await wait(ms.seconds(RETRY_WAIT_SECONDS));
|
||||
debug(`Waited ${ms.seconds(Date.now() - waitStart)}s`);
|
||||
debug(`Configured wait: ${ms.seconds(RETRY_WAIT_SECONDS)}s`);
|
||||
debug(`Waited ${Date.now() - waitStart}ms`);
|
||||
debug(`Configured wait: ${ms.seconds(RETRY_WAIT_SECONDS)}ms`);
|
||||
}
|
||||
|
||||
async function runAction() {
|
||||
|
||||
@@ -58,8 +58,8 @@ async function runCmd() {
|
||||
async function retryWait() {
|
||||
const waitStart = Date.now();
|
||||
await wait(ms.seconds(RETRY_WAIT_SECONDS));
|
||||
debug(`Waited ${ms.seconds(Date.now() - waitStart)}s`);
|
||||
debug(`Configured wait: ${ms.seconds(RETRY_WAIT_SECONDS)}s`);
|
||||
debug(`Waited ${Date.now() - waitStart}ms`);
|
||||
debug(`Configured wait: ${ms.seconds(RETRY_WAIT_SECONDS)}ms`);
|
||||
}
|
||||
|
||||
async function runAction() {
|
||||
|
||||
Reference in New Issue
Block a user