Skip to content

Commit

Permalink
fix: fixed debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Fields committed Jun 17, 2020
1 parent 3ded872 commit 6a380b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 6a380b5

Please sign in to comment.