From a2fc680b119aa649a8296c925f6274d8bd2a5576 Mon Sep 17 00:00:00 2001 From: jomo Date: Wed, 28 Jan 2015 23:55:19 +0100 Subject: [PATCH] add some logging --- modules/helpers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/helpers.js b/modules/helpers.js index 23527e2..5648dc8 100644 --- a/modules/helpers.js +++ b/modules/helpers.js @@ -103,6 +103,7 @@ function callback_for(uuid, type, err, hash) { for (var i = 0; i < currently_running.length; i++) { var current = currently_running[i]; if (current.uuid === uuid && current.type === type) { + logging.debug(uuid + " now completing queued " + type + " request"); current.callback(err, hash); currently_running.splice(i, 1); // remove from array i--; @@ -143,6 +144,7 @@ function store_images(uuid, details, type, callback) { } }); } else { + logging.log(uuid + " ID already being processed, adding to queue"); currently_running.push(new_hash); } }