mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix: downgrade cleaningJob logs to debug; fix catch log level
This commit is contained in:
@@ -14,7 +14,7 @@ export const backupCleanTask = async () => {
|
||||
eq(drizzleDb.schemas.backup.status, "ongoing")
|
||||
)
|
||||
});
|
||||
log.info(`Backups to clean: ${backups.length}`);
|
||||
log.debug(`Backups to clean: ${backups.length}`);
|
||||
|
||||
for (const backup of backups) {
|
||||
await db.update(drizzleDb.schemas.backup).set(withUpdatedAt({
|
||||
@@ -24,7 +24,7 @@ export const backupCleanTask = async () => {
|
||||
}
|
||||
|
||||
} catch (e: any) {
|
||||
log.info({name: "backupCleanTask", error: e},`Backup cleanup failed`);
|
||||
log.error({name: "backupCleanTask", error: e},`Backup cleanup failed`);
|
||||
throw e;
|
||||
}
|
||||
};
|
||||
@@ -22,7 +22,7 @@ export const retentionJob = cron.schedule(env.RETENTION_CRON, async () => {
|
||||
|
||||
export const cleaningJob = cron.schedule("* * * * *", async () => {
|
||||
try {
|
||||
log.info({ job: "cron", action: "start", name: "cleaningJob" }, "Cleaning Job started");
|
||||
log.debug({ job: "cron", action: "start", name: "cleaningJob" }, "Cleaning Job started");
|
||||
await backupCleanTask();
|
||||
} catch (err) {
|
||||
log.error({ job: "cron", name: "cleaningJob", error: err }, "Cleaning Job Error");
|
||||
|
||||
Reference in New Issue
Block a user