From 0ceec7711bfe3355ab1ceb5f1b2008ce47a7828a Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Wed, 26 Aug 2020 20:17:59 -0700 Subject: [PATCH] Fixed showevents in meshctrl.js --- meshctrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshctrl.js b/meshctrl.js index cae48e76..7b9ab0eb 100644 --- a/meshctrl.js +++ b/meshctrl.js @@ -1063,7 +1063,7 @@ function serverConnect() { var data = null; try { data = JSON.parse(rawdata); } catch (ex) { } if (data == null) { console.log('Unable to parse data: ' + rawdata); } - if (settings.cmd == 'showevents') { console.log(data); return; } + if (settings.cmd == 'showevents') { console.log(JSON.stringify(data, null, 2)); return; } switch (data.action) { case 'serverinfo': { // SERVERINFO console.log(data);