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
*/
addJob(job, data) {
this.logging.info('Adding one off job to the queue');
this.queue.push(async () => {
await job(data);
}, handler);