From f3880b7601390f91197ea48c16ad352a0fe74d4b Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 24 Feb 2015 22:02:39 +0000 Subject: [PATCH] Fix credential pruning and start/stop log messages --- red/nodes/Flow.js | 13 ++++++++- red/nodes/credentials.js | 1 + red/nodes/flows.js | 63 ++++++++++------------------------------ 3 files changed, 29 insertions(+), 48 deletions(-) diff --git a/red/nodes/Flow.js b/red/nodes/Flow.js index 8eea60831..4f56b0daf 100644 --- a/red/nodes/Flow.js +++ b/red/nodes/Flow.js @@ -301,7 +301,6 @@ Flow.prototype.start = function() { if (this.missingTypes.length > 0) { throw new Error("missing types"); } - events.emit("nodes-starting"); for (var id in this.nodes) { @@ -435,7 +434,13 @@ Flow.prototype.applyConfig = function(config,type) { } var flow = this; + if (type != "full") { + log.info("Stopping modified "+type); + } return this.stop(activeNodesToStop).then(function() { + if (type != "full") { + log.info("Stopped modified "+type); + } flow.parseConfig(config); for (var i=0;i 0) { @@ -177,7 +143,10 @@ var flowNodes = module.exports = { }, stopFlows: function() { log.info("Stopping flows"); - return activeFlow.stop(); + return activeFlow.stop().then(function() { + log.info("Stopped flows"); + return; + }); } };