From 395e490d709284bcda6ff3b11700d126817b0b71 Mon Sep 17 00:00:00 2001 From: LordCranus <123775073+LordCranus@users.noreply.github.com> Date: Fri, 27 Jan 2023 23:00:05 +0100 Subject: [PATCH] chore(http/github): log warning if Github secondary rate limit is hit (#20074) --- lib/util/http/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/http/github.ts b/lib/util/http/github.ts index b8ffe47aa1..cf2042ea79 100644 --- a/lib/util/http/github.ts +++ b/lib/util/http/github.ts @@ -94,7 +94,7 @@ function handleGotError( err.statusCode === 403 && message.startsWith('You have exceeded a secondary rate limit') ) { - logger.debug({ err }, 'GitHub failure: secondary rate limit'); + logger.warn({ err }, 'GitHub failure: secondary rate limit'); return new Error(PLATFORM_RATE_LIMIT_EXCEEDED); } if (err.statusCode === 403 && message.includes('Upgrade to GitHub Pro')) { -- GitLab