test: reduce debugging logs in test-event

The logs mostly give no information, but fill CI results.
This commit is contained in:
Yu Watanabe
2021-05-19 17:08:59 +09:00
committed by Lennart Poettering
parent 1d406dceb7
commit 834f3ba1a0

View File

@@ -438,13 +438,12 @@ static int inotify_handler(sd_event_source *s, const struct inotify_event *ev, v
log_info("inotify-handler <%s>: overflow", description);
c->create_overflow |= bit;
} else if (ev->mask & IN_CREATE) {
unsigned i;
if (streq(ev->name, "sub"))
log_debug("inotify-handler <%s>: create on %s", description, ev->name);
else {
unsigned i;
log_debug("inotify-handler <%s>: create on %s", description, ev->name);
if (!streq(ev->name, "sub")) {
assert_se(safe_atou(ev->name, &i) >= 0);
assert_se(i < c->n_create_events);
c->create_called[i] |= bit;
}