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() {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user