changing the logs
This commit is contained in:
parent
e133b49ee9
commit
486f334b4a
3
dist/index.js
vendored
3
dist/index.js
vendored
|
@ -39,9 +39,10 @@ class App {
|
||||||
else {
|
else {
|
||||||
console.log("No new games were Added!");
|
console.log("No new games were Added!");
|
||||||
}
|
}
|
||||||
|
this.writeLog('Successfully ran project');
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
console.error("Error in cron job:", error.message);
|
this.writeLog("Error in cron job:" + error.message);
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
this.writeLog('END CRON JOB'); // Log when the cron job ends
|
this.writeLog('END CRON JOB'); // Log when the cron job ends
|
||||||
|
|
|
@ -45,8 +45,9 @@ class App {
|
||||||
} else {
|
} else {
|
||||||
console.log("No new games were Added!");
|
console.log("No new games were Added!");
|
||||||
}
|
}
|
||||||
|
this.writeLog('Successfully ran project');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error in cron job:", error.message);
|
this.writeLog("Error in cron job:" + error.message);
|
||||||
} finally {
|
} finally {
|
||||||
this.writeLog('END CRON JOB'); // Log when the cron job ends
|
this.writeLog('END CRON JOB'); // Log when the cron job ends
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue