summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/monitoring/monitor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/monitoring/monitor.js b/test/monitoring/monitor.js
index ecf10962..e1d4be5b 100644
--- a/test/monitoring/monitor.js
+++ b/test/monitoring/monitor.js
@@ -429,7 +429,7 @@ function gotevent(obj) {
function gottraceevent(obj) {
var data = obj.data;
- var type = _.find(["request", "service", "daemon", "event"],function(x){return x in data;});
+ var type = data.type;
var desc = data[type];
if (!show_monitor_events) {
if (type == "event" ? desc.name.startsWith("monitor/") : desc.api == "monitor")