Improve event debugging

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-11-22 22:18:56 +01:00
1 parent e7db6c6ac6
commit 7569c479b8
2 files changed
+10 -1

No files matched your search

+3 -1
View File
@@ -209,8 +209,10 @@ void event_dispatch(char *msg)
if (svc->type != SVC_TYPE_SERVICE ||
!service_enabled(svc, 1, NULL) ||
!has_events(svc->events) ||
!matches_event(svc->events, msg))
!matches_event(svc->events, msg)) {
_d("No match for %s in service %s", msg, svc->cmd);
continue;
}
if (change == 1) {
_d("%s matches <%s> %s (re)starting ...", msg, svc->events, svc->cmd);