test-local-addresses: turn on debug logging by default
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Jan 2018 14:47:56 +0000 (15:47 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Jan 2018 14:47:56 +0000 (15:47 +0100)
This is a test, we should hence debug log.

src/libsystemd/sd-netlink/test-local-addresses.c

index bb195b9..bf11042 100644 (file)
@@ -38,6 +38,10 @@ int main(int argc, char *argv[]) {
         struct local_address *a;
         int n;
 
+        log_set_max_level(LOG_DEBUG);
+        log_parse_environment();
+        log_open();
+
         a = NULL;
         n = local_addresses(NULL, 0, AF_UNSPEC, &a);
         assert_se(n >= 0);