From c286c21fb6d4ae6ac1d8c9e8e8abd7520791d618 Mon Sep 17 00:00:00 2001 From: si458 Date: Tue, 7 Nov 2023 14:42:02 +0000 Subject: [PATCH] add trace-warnings correctly Signed-off-by: si458 --- meshcentral.js | 1 + 1 file changed, 1 insertion(+) diff --git a/meshcentral.js b/meshcentral.js index b7163a4e..fff4586b 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -454,6 +454,7 @@ function CreateMeshCentralServer(config, args) { obj.launchChildServer = function (startArgs) { const child_process = require('child_process'); try { if (process.traceDeprecation === true) { startArgs.unshift('--trace-deprecation'); } } catch (ex) { } + try { if (process.traceProcessWarnings === true) { startArgs.unshift('--trace-warnings'); } } catch (ex) { } childProcess = child_process.execFile(process.argv[0], startArgs, { maxBuffer: Infinity, cwd: obj.parentpath }, function (error, stdout, stderr) { if (childProcess.xrestart == 1) { setTimeout(function () { obj.launchChildServer(startArgs); }, 500); // This is an expected restart.