From a96eb450de7941351e384f2c5bd98aeea7d00911 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Thu, 28 Dec 2017 18:24:29 +0000 Subject: [PATCH] Improved Recipe logging --- src/core/Recipe.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/Recipe.js b/src/core/Recipe.js index 6f2fb166..c9128118 100755 --- a/src/core/Recipe.js +++ b/src/core/Recipe.js @@ -149,18 +149,19 @@ Recipe.prototype.execute = async function(dish, startFrom) { for (let i = startFrom; i < this.opList.length; i++) { op = this.opList[i]; + log.debug(`[${i}] ${op.name}`); if (op.isDisabled()) { - log.debug(`[${i}] '${op.name}' is disabled`); + log.debug("Operation is disabled, skipping"); continue; } if (op.isBreakpoint()) { - log.debug(`[${i}] Pausing at breakpoint on '${op.name}'`); + log.debug("Pausing at breakpoint"); return i; } try { input = dish.get(op.inputType); - log.debug(`[${i}] Executing '${op.name}'`); + log.debug("Executing operation"); if (op.isFlowControl()) { // Package up the current state @@ -196,6 +197,7 @@ Recipe.prototype.execute = async function(dish, startFrom) { } } + log.debug("Recipe complete"); return this.opList.length; };