Skip to content
This repository was archived by the owner on Jun 9, 2024. It is now read-only.

Commit 43ed0c5

Browse files
committed
🔨 chore: Downgrade 429 log err->warn
1 parent 98f3499 commit 43ed0c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/mewna/catnip/rest/requester/AbstractRequester.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ protected void handleResponse(@Nonnull final Route route, final int statusCode,
252252
}
253253
if(statusCode == 429) {
254254
if(catnip.options().logLifecycleEvents()) {
255-
catnip.logAdapter().error(
255+
catnip.logAdapter().warn(
256256
"Hit 429! Route: {}, X-Ratelimit-Global: {}, X-Ratelimit-Limit: {}, X-Ratelimit-Reset: {}",
257257
route.baseRoute(),
258258
headers.firstValue("X-Ratelimit-Global").orElse(null),

0 commit comments

Comments
 (0)