From daf9d172744db88ffd62f40d31bf4e0926c85d69 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 2 Jul 2014 11:37:11 -0700 Subject: [PATCH] Better debug messages --- src/apptask.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apptask.js b/src/apptask.js index 3da9ee5f6..550bf9a7f 100644 --- a/src/apptask.js +++ b/src/apptask.js @@ -130,7 +130,7 @@ function downloadImage(app, callback) { // is emitted as a chunk stream.on('data', function (chunk) { var data = safe.JSON.parse(chunk) || { }; - debug(JSON.stringify(data)); + debug('downloadImage:', JSON.stringify(data)); // The information here is useless because this is per layer as opposed to per image if (data.status) { @@ -409,6 +409,7 @@ function install(app, callback) { // done! function (callback) { + debug('App ' + app.id + ' installed'); updateApp(app, { installationState: appdb.ISTATE_INSTALLED }, callback); } ], callback); @@ -475,7 +476,7 @@ function start(appId, callback) { install(app, function (error) { if (error) { - debug(error.message); + debug('Error installing app:', error); return updateApp(app, { installationState: appdb.ISTATE_ERROR }, callback); }