From 1ca685a91db8b10fa61371670720e5d3357ebd70 Mon Sep 17 00:00:00 2001 From: BOBINOSCOPE Date: Mon, 13 Jul 2015 11:45:05 +0200 Subject: [PATCH] errors log added --- tools/tools-photobooth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tools-photobooth.js b/tools/tools-photobooth.js index 349fec4..88da4d8 100644 --- a/tools/tools-photobooth.js +++ b/tools/tools-photobooth.js @@ -108,7 +108,7 @@ module.exports = function(pConfig) { function BOB_updateConfig() { BOB_mod_fs.readdir(BOB_cfg_config.paths.template, function(pErr, pFiles) { if( pErr ) { - console.log(pErr); + console.log("BOB_updateConfig", "Path:", BOB_cfg_config.paths.template, pErr); } else { BOB_mod_async.map(pFiles, function(pFile, pCb) { @@ -124,7 +124,7 @@ function BOB_updateConfig() { // Get reslution of current template BOB_mod_gm(BOB_cfg_config.booths[boothName].template).size(function(pErr, pValue){ if( pErr ) { - console.log(pErr); + console.log("[ERROR] Get template size", pErr); } else { BOB_cfg_config.booths[boothName].resolution = pValue; BOB_generatePictLayout(boothName);