Better debug

This commit is contained in:
Raul Ochoa 2016-10-19 11:46:02 +02:00
parent 4daa39bd2c
commit 71d32e003b

View File

@ -47,7 +47,7 @@ Scheduler.prototype.schedule = function() {
function (next) { function (next) {
debug('Trying to acquire user'); debug('Trying to acquire user');
self.acquire(function(err, taskEntity) { self.acquire(function(err, taskEntity) {
debug('Acquired user=%s', taskEntity); debug('Acquired user=%j', taskEntity);
if (!taskEntity) { if (!taskEntity) {
return next(new Error('all users finished')); return next(new Error('all users finished'));