From cd160c486eaf34525d43bcdd56e1ffc0e14a2f47 Mon Sep 17 00:00:00 2001 From: alikia2x Date: Thu, 27 Mar 2025 03:51:35 +0800 Subject: [PATCH] update: logging in bulk --- lib/mq/exec/snapshotTick.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mq/exec/snapshotTick.ts b/lib/mq/exec/snapshotTick.ts index 37daefa..a4aa147 100644 --- a/lib/mq/exec/snapshotTick.ts +++ b/lib/mq/exec/snapshotTick.ts @@ -259,15 +259,15 @@ export const takeBulkSnapshotForVideosWorker = async (job: Job) => { } catch (e) { if (e instanceof NetSchedulerError && e.code === "NO_PROXY_AVAILABLE") { logger.warn( - `No available proxy for aid ${job.data.aid}.`, + `No available proxy for bulk request now.`, "mq", - "fn:takeSnapshotForVideoWorker", + "fn:takeBulkSnapshotForVideosWorker", ); await bulkSetSnapshotStatus(client, ids, "completed"); await bulkScheduleSnapshot(client, aidsToFetch, "normal", Date.now() + 2 * MINUTE); return; } - logger.error(e as Error, "mq", "fn:takeSnapshotForVideoWorker"); + logger.error(e as Error, "mq", "fn:takeBulkSnapshotForVideosWorker"); await bulkSetSnapshotStatus(client, ids, "failed"); } finally {