1
0

update: better logging

This commit is contained in:
alikia2x (寒寒) 2025-10-21 22:50:38 +08:00
parent 9770a487bc
commit 57992069ec

View File

@ -46,7 +46,7 @@ export const archiveSnapshotsWorker = async (_job: Job) => {
unit: "hour"
});
logger.log(
`Scheduled archive snapshot for aid ${aid} in ${formatted}. date: ${nextSaturday(date).toUTCString()}, timestamp: ${nextSaturday(date).getTime()}`,
`Scheduled archive snapshot for aid ${aid} in ${formatted}.`,
"mq",
"fn:archiveSnapshotsWorker"
);
@ -67,7 +67,7 @@ export const archiveSnapshotsWorker = async (_job: Job) => {
const formatted = formatDuration(interval, { format: ["days", "hours"] });
logger.log(
`Scheduled archive snapshot for aid ${aid} in ${formatted}.`,
`Scheduled common archive snapshot for aid ${aid} in ${formatted}.`,
"mq",
"fn:archiveSnapshotsWorker"
);