Skip to content

Commit

Permalink
Omit 429 responses from errors
Browse files Browse the repository at this point in the history
  • Loading branch information
codegaze committed Jul 12, 2024
1 parent 5855299 commit 2bbd2e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/telemetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ async function sendToTelemetry(path, payload, ratelimiterKey) {
},
);
} catch (e) {
logger.error(e);
if (e.response && e.response.status === 429) {
logger.info(e);
} else {
logger.error(e);
}
}

// Decrease concurrency
Expand Down

0 comments on commit 2bbd2e3

Please sign in to comment.