Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packages/backend/src/services/GuildAccessService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
type EffectiveAccessMap,
type ModuleKey,
} from '@lucky/shared/services'
import { errorLog } from '@lucky/shared/utils'
import { errorLog, infoLog } from '@lucky/shared/utils'
import {
DiscordApiError,
discordOAuthService,
Expand Down Expand Up @@ -174,7 +174,11 @@ class GuildAccessService {
(statusCode === 429 ||
(statusCode !== null && statusCode >= 500))
) {
errorLog({
// Graceful degradation — Discord 429/5xx is expected
// during rate-limit windows; cache fallback works as
// designed. Log at info level so Sentry doesn't surface
// it as a recurring error.
infoLog({
message:
'Using cached guild list after Discord guild fetch failure',
data: {
Expand Down
Loading