mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03:00
Added logging
This commit is contained in:
parent
48597b0056
commit
5506c64ae4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user