changing the logs

This commit is contained in:
Kfir Dayan 2024-02-04 13:38:35 +02:00
parent e133b49ee9
commit 486f334b4a
2 changed files with 4 additions and 2 deletions

3
dist/index.js vendored
View file

@ -39,9 +39,10 @@ class App {
else {
console.log("No new games were Added!");
}
this.writeLog('Successfully ran project');
}
catch (error) {
console.error("Error in cron job:", error.message);
this.writeLog("Error in cron job:" + error.message);
}
finally {
this.writeLog('END CRON JOB'); // Log when the cron job ends

View file

@ -45,8 +45,9 @@ class App {
} else {
console.log("No new games were Added!");
}
this.writeLog('Successfully ran project');
} catch (error) {
console.error("Error in cron job:", error.message);
this.writeLog("Error in cron job:" + error.message);
} finally {
this.writeLog('END CRON JOB'); // Log when the cron job ends
}