feat: downgrade log level callback succeeded (#2329)

This commit is contained in:
Manuel
2025-02-15 22:15:51 +01:00
committed by Meier Lukas
parent 3257f6101b
commit 22a341ea4d
5 changed files with 27 additions and 1 deletions
@@ -11,6 +11,7 @@ import { createCronJob } from "../lib";
export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
runOnStart: true,
expectedMaximumDurationInMillis: 10 * 1000,
}).withCallback(async () => {
logger.info("Updating icon repository cache...");
const stopWatch = new Stopwatch();
+4
View File
@@ -16,6 +16,10 @@ class WinstonCronJobLogger implements Logger {
logError(error: unknown) {
logger.error(error);
}
logWarning(message: string) {
logger.warn(message);
}
}
export const { createCronJob, createCronJobGroup } = createCronJobFunctions<