summaryrefslogtreecommitdiffstats
path: root/test/monitoring/monitor.js
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-01 11:36:54 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-09-05 18:37:25 +0200
commit32fb61f039933a946067cff434e8a3386694a1d4 (patch)
tree69c44be966e1f16ec3bb67ba9a0bd80c07ac1053 /test/monitoring/monitor.js
parent8f3368daeca3d5c184321e96cba60886bb7fc82f (diff)
sig-monitor: Dump stack atomically
Emitting the stack as a single string avoids its accidental split and is better when receiving monitoring events. Change-Id: I74c16f36f026b4af4a42064f694ac1f4a342cc1f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'test/monitoring/monitor.js')
-rw-r--r--test/monitoring/monitor.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/monitoring/monitor.js b/test/monitoring/monitor.js
index 22d71824..6ca75cc6 100644
--- a/test/monitoring/monitor.js
+++ b/test/monitoring/monitor.js
@@ -499,6 +499,7 @@ function obj2html(json) {
cls = 'key';
} else {
cls = 'string';
+ match = match.replace(/\\n/g, "\\n<br>");
}
} else if (/true|false/.test(match)) {
cls = 'boolean';