Skip to content

Commit

Permalink
refactor: use console based logging
Browse files Browse the repository at this point in the history
  • Loading branch information
varl committed May 5, 2023
1 parent 2eda2d9 commit eb53ddf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ export async function runPublish({
getOctokitOptions(githubToken, {
throttle: {
onRateLimit: (retryAfter, options: any, octokit, retryCount) => {
octokit.log.warn(
console.log(
`Request quota exhausted for request ${options.method} ${options.url}`
);

if (retryCount <= 2) {
octokit.log.info(`Retrying after ${retryAfter} seconds!`);
console.log(`Retrying after ${retryAfter} seconds!`);
return true;
}
},
Expand All @@ -101,12 +101,12 @@ export async function runPublish({
octokit,
retryCount
) => {
octokit.log.warn(
console.log(
`SecondaryRateLimit detected for request ${options.method} ${options.url}`
);

if (retryCount <= 2) {
octokit.log.info(`Retrying after ${retryAfter} seconds!`);
console.log(`Retrying after ${retryAfter} seconds!`);
return true;
}
},
Expand Down

0 comments on commit eb53ddf

Please sign in to comment.