1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Add debug logging around flow revision ids

This commit is contained in:
Nick O'Leary 2017-01-10 14:20:51 +00:00
parent ce6594c8cc
commit 28678acf74
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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