]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-event: stop debugging spew
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 2 Aug 2019 13:00:02 +0000 (15:00 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 20 Aug 2019 10:01:23 +0000 (12:01 +0200)
Ubuntu autopkgtests print output from all tests, and test-event produces
a lot of it. Let's cut it down to reasonable size.

src/libsystemd/sd-event/test-event.c

index 224ea93a77447d544ccdf12750a10a5f0dad9263..954b93ada0cf8b314a6ebe021184cc1bd0892cfc 100644 (file)
@@ -395,7 +395,7 @@ static int inotify_handler(sd_event_source *s, const struct inotify_event *ev, v
         } else if (ev->mask & IN_CREATE) {
                 unsigned i;
 
-                log_info("inotify-handler <%s>: create on %s", description, ev->name);
+                log_debug("inotify-handler <%s>: create on %s", description, ev->name);
 
                 if (!streq(ev->name, "sub")) {
                         assert_se(safe_atou(ev->name, &i) >= 0);
@@ -483,7 +483,7 @@ static void test_inotify(unsigned n_create_events) {
 }
 
 int main(int argc, char *argv[]) {
-        test_setup_logging(LOG_DEBUG);
+        test_setup_logging(LOG_INFO);
 
         test_basic();
         test_sd_event_now();