Skip to content

Commit

Permalink
simplified retry message
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenSoftware committed Feb 2, 2021
1 parent 40aa58b commit c090287
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libs/auth/src/lib/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,12 @@ const retryStrategy = ({
return throwError(errors);
}

console.log(`Exchange token attempt ${retryAttempt}: retrying in ${duration}ms`, errors);
const durationMinutes = Math.round(duration / (1000 * 60));

console.log(
`Exchange token attempt ${retryAttempt}: retrying in ${durationMinutes}min`,
errors
);

return timer(duration);
})
Expand Down

0 comments on commit c090287

Please sign in to comment.