X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Fmonitoring%2Fmonitor.js;fp=test%2Fmonitoring%2Fmonitor.js;h=e1d4be5bd6913808ba60fd1295d59929b2b69218;hb=0959d003f6476eb3397049b5fc7f304988ec06c2;hp=ecf109626f85e2761ce081fffc22af8441520003;hpb=7dfbf0230218f8bac9b37326421c24547d22bbd8;p=src%2Fapp-framework-binder.git 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")