fix: being in a loop is not a good sign

This commit is contained in:
Skillz4Killz
2023-04-17 16:09:18 +00:00
parent 286a7c9f64
commit b496f4c1ac

View File

@@ -55,7 +55,7 @@ export function createInvalidRequestBucket(options: InvalidRequestBucketOptions)
bucket.processing = true
while (bucket.waiting.length > 0) {
logger.debug(`[InvalidBucket] processing waiting queue while loop ran with ${bucket.waiting.length} pending requests to be made. ${JSON.stringify(bucket)}`)
logger.info(`[InvalidBucket] processing waiting queue while loop ran with ${bucket.waiting.length} pending requests to be made. ${JSON.stringify(bucket)}`)
if (!bucket.isRequestAllowed() && bucket.resetAt !== undefined) {
logger.warn(`[InvalidBucket] processing waiting queue is now paused until more requests are available. ${bucket.waiting.length} pending requests. ${JSON.stringify(bucket)}`)