From 28678acf74d2d72371baaf6c0ac728f0886d0671 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 10 Jan 2017 14:20:51 +0000 Subject: [PATCH] Add debug logging around flow revision ids --- red/runtime/nodes/flows/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/red/runtime/nodes/flows/index.js b/red/runtime/nodes/flows/index.js index c06fac0e2..c781a6119 100644 --- a/red/runtime/nodes/flows/index.js +++ b/red/runtime/nodes/flows/index.js @@ -70,6 +70,7 @@ function init(runtime) { function loadFlows() { return storage.getFlows().then(function(config) { + log.debug("loaded flow revision: "+config.rev); return credentials.load(config.credentials).then(function() { return config; }); @@ -94,8 +95,9 @@ function setFlows(_config,type,muteLog) { var config = null; var diff; var newFlowConfig; - + var isLoad = false; if (type === "load") { + isLoad = true; configSavePromise = loadFlows().then(function(_config) { config = clone(_config.flows); newFlowConfig = flowUtil.parseConfig(clone(config)); @@ -122,6 +124,9 @@ function setFlows(_config,type,muteLog) { return configSavePromise .then(function(flowRevision) { + if (!isLoad) { + log.debug("saved flow revision: "+flowRevision); + } activeConfig = { flows:config, rev:flowRevision