update: better logging
This commit is contained in:
parent
9770a487bc
commit
57992069ec
@ -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"
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user