From 3ea381e7db4a55157be4ae0ef9614ade8fc943d2 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sat, 9 Nov 2024 02:01:24 +0800 Subject: [PATCH] feat(twitter): debug --- lib/routes/twitter/api/web-api/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/routes/twitter/api/web-api/utils.ts b/lib/routes/twitter/api/web-api/utils.ts index 3738f229f70ac7..84b0015fd7a73d 100644 --- a/lib/routes/twitter/api/web-api/utils.ts +++ b/lib/routes/twitter/api/web-api/utils.ts @@ -57,6 +57,7 @@ const getAuth = async (retry: number) => { const token = config.twitter.authToken[index]; const lock = await cache.get(`${lockPrefix}${token}`, false); if (lock) { + logger.debug(`twitter debug: twitter cookie for token ${token} is locked, retry: ${retry}`); await new Promise((resolve) => setTimeout(resolve, Math.random() * 500 + 500)); return await getAuth(retry - 1); } else {