diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-08-25 00:22:43 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-08-25 00:22:43 +0200 |
commit | b5a4f1433c69651c79f29353139a3aa54dd25c85 (patch) | |
tree | 3d76cf72743477e3b49611523930fc85fb8c83fd /test/monitoring/monitor.js | |
parent | 99f9504a15ff302c4aa6842ad2f5095263c23c3f (diff) |
monitoring: updated demo with dark theme
Change-Id: Ibb77655cd614553bf0090bf5ffa64180d1279f8b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'test/monitoring/monitor.js')
-rw-r--r-- | test/monitoring/monitor.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/monitoring/monitor.js b/test/monitoring/monitor.js index c4f24a00..6926260f 100644 --- a/test/monitoring/monitor.js +++ b/test/monitoring/monitor.js @@ -164,15 +164,15 @@ function on_error_apis(obj) { function do_call(api_verb, request, onsuccess, onerror) { var call = api_verb + "(" + JSON.stringify(request, null, 1) + ")"; - add_logmsg(call, "", "call"); + add_logmsg("send request", call, "call"); ws.call(api_verb, request).then( function(obj){ - add_logmsg(call + " SUCCESS:", JSON.stringify(obj, null, 1), "retok"); + add_logmsg("receive success", call + " -> " + JSON.stringify(obj, null, 1), "retok"); if (onsuccess) onsuccess(obj); }, function(obj){ - add_logmsg(call + " ERROR:", JSON.stringify(obj, null, 1), "reterr"); + add_logmsg("receive error", call + " -> ", JSON.stringify(obj, null, 1), "reterr"); if (onerror) onerror(obj); }); @@ -377,7 +377,7 @@ function gottraceevent(obj) { })[type](desc); var tab = makeobj(desc, 4); if ("data" in data) - makeobjitem(tab, 1, "data", data.data); + makeobjitem(tab, 2, "data", data.data); get(".content", x).append(tab); trace_events_node.append(x); } |