]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/udev/collect/collect.c
Rip out setting of the log level from udev_new and put it in a new function
[thirdparty/systemd.git] / src / udev / collect / collect.c
index 0e973cd521893dbc3befbedeec35416ff9fc5baa..0b3c0f969a67368c2f1bf809ddf9a53f5f0c29eb 100644 (file)
@@ -29,6 +29,7 @@
 #include "macro.h"
 #include "stdio-util.h"
 #include "string-util.h"
+#include "udev-util.h"
 
 #define BUFSIZE 16
 #define UDEV_ALARM_TIMEOUT 180
@@ -361,6 +362,11 @@ int main(int argc, char **argv)
         int prune = 0;
         char tmpdir[UTIL_PATH_SIZE];
 
+        log_set_target(LOG_TARGET_AUTO);
+        udev_parse_config();
+        log_parse_environment();
+        log_open();
+
         udev = udev_new();
         if (udev == NULL) {
                 ret = EXIT_FAILURE;