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:
parent
ce6594c8cc
commit
28678acf74
@ -70,6 +70,7 @@ function init(runtime) {
|
|||||||
|
|
||||||
function loadFlows() {
|
function loadFlows() {
|
||||||
return storage.getFlows().then(function(config) {
|
return storage.getFlows().then(function(config) {
|
||||||
|
log.debug("loaded flow revision: "+config.rev);
|
||||||
return credentials.load(config.credentials).then(function() {
|
return credentials.load(config.credentials).then(function() {
|
||||||
return config;
|
return config;
|
||||||
});
|
});
|
||||||
@ -94,8 +95,9 @@ function setFlows(_config,type,muteLog) {
|
|||||||
var config = null;
|
var config = null;
|
||||||
var diff;
|
var diff;
|
||||||
var newFlowConfig;
|
var newFlowConfig;
|
||||||
|
var isLoad = false;
|
||||||
if (type === "load") {
|
if (type === "load") {
|
||||||
|
isLoad = true;
|
||||||
configSavePromise = loadFlows().then(function(_config) {
|
configSavePromise = loadFlows().then(function(_config) {
|
||||||
config = clone(_config.flows);
|
config = clone(_config.flows);
|
||||||
newFlowConfig = flowUtil.parseConfig(clone(config));
|
newFlowConfig = flowUtil.parseConfig(clone(config));
|
||||||
@ -122,6 +124,9 @@ function setFlows(_config,type,muteLog) {
|
|||||||
|
|
||||||
return configSavePromise
|
return configSavePromise
|
||||||
.then(function(flowRevision) {
|
.then(function(flowRevision) {
|
||||||
|
if (!isLoad) {
|
||||||
|
log.debug("saved flow revision: "+flowRevision);
|
||||||
|
}
|
||||||
activeConfig = {
|
activeConfig = {
|
||||||
flows:config,
|
flows:config,
|
||||||
rev:flowRevision
|
rev:flowRevision
|
||||||
|
Loading…
Reference in New Issue
Block a user