0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Added logging

This commit is contained in:
Naz 2020-11-05 16:42:23 +13:00
parent 48597b0056
commit 5506c64ae4

View file

@ -31,6 +31,8 @@ class JobManager {
* @param {Object} [data] data to be passed into the job * @param {Object} [data] data to be passed into the job
*/ */
addJob(job, data) { addJob(job, data) {
this.logging.info('Adding one off job to the queue');
this.queue.push(async () => { this.queue.push(async () => {
await job(data); await job(data);
}, handler); }, handler);