mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add more debug
This commit is contained in:
@@ -271,12 +271,12 @@ function getFlows() {
|
|||||||
return activeConfig;
|
return activeConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function start(type,diff,muteLog,isDeploy) {
|
async function start(type,diff,muteLog,isDeploy, traceError) {
|
||||||
type = type || "full";
|
type = type || "full";
|
||||||
if (diff && diff.globalConfigChanged) {
|
if (diff && diff.globalConfigChanged) {
|
||||||
type = 'full'
|
type = 'full'
|
||||||
}
|
}
|
||||||
lastStarterStack = new Error('Flows started here').stack
|
lastStarterStack = traceError || new Error('Flows started here').stack
|
||||||
started = true;
|
started = true;
|
||||||
state = 'start'
|
state = 'start'
|
||||||
var i;
|
var i;
|
||||||
|
@@ -131,6 +131,7 @@ function getVersion() {
|
|||||||
* @memberof @node-red/runtime
|
* @memberof @node-red/runtime
|
||||||
*/
|
*/
|
||||||
function start() {
|
function start() {
|
||||||
|
const startedCaller = new Error('runtime/lib/index.start started here').stack
|
||||||
return i18n.registerMessageCatalog("runtime",path.resolve(path.join(__dirname,"..","locales")),"runtime.json")
|
return i18n.registerMessageCatalog("runtime",path.resolve(path.join(__dirname,"..","locales")),"runtime.json")
|
||||||
.then(function() { return storage.init(runtime)})
|
.then(function() { return storage.init(runtime)})
|
||||||
.then(function() { return settings.load(storage)})
|
.then(function() { return settings.load(storage)})
|
||||||
@@ -233,7 +234,7 @@ function start() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return redNodes.loadContextsPlugin().then(function () {
|
return redNodes.loadContextsPlugin().then(function () {
|
||||||
redNodes.loadFlows().then(() => { redNodes.startFlows() }).catch(function(err) {});
|
redNodes.loadFlows().then(() => { redNodes.startFlows(null, null, null, null, startedCaller) }).catch(function(err) {});
|
||||||
started = true;
|
started = true;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user