Improved MeshCMD starting of LMS console messages.

Ylian Saint-Hilaire committed Jul 14, 2021 at 12:17 UTC c21c9efb211e8e5e220662429afc79913d7f7882
1 file changed +2 -3
agents/meshcmd.js
+2 -3
@@ -1501,11 +1501,10 @@ function startLms(func, lmscommander, tag) {
1501 amtMei.on('error', function (e) { console.log('ERROR: ' + e); exit(1); return; });
1502 //console.log("PTHI Connected.");
1503
1504 - console.log('Setting up LME...');
1504 try { amtLms = new lme_heci({ debug: settings.lmsdebug }); } catch (ex) { if (func != null) { func(0, tag); } return; }
1505 amtLms.promise = ret;
1506 amtLms.on('error', function (e) {
1508 - console.log('LME connection failed', e);
1507 + //console.log('LME connection failed', e);
1508 if (lmscommander === true) { //settings.noconsole !== true) {
1509 startMeshCommanderLms();
1510 //console.log("LMS started, MeshCommander on HTTP/16994.");
@@ -1530,7 +1529,7 @@ function startLms(func, lmscommander, tag) {
1529 //console.log('LME Connecting...');
1530 amtLms.on('bind', function (mapping) {
1531 if (mapping[16992]) { this.removeAllListeners('bind'); } else { return; }
1533 - //console.log('LMS Bounded');
1532 + console.log('Started LMS...');
1533 amtLms.connected = true;
1534 this.promise._res();
1535