changing the logs
This commit is contained in:
parent
e133b49ee9
commit
486f334b4a
2 changed files with 4 additions and 2 deletions
3
dist/index.js
vendored
3
dist/index.js
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue