summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udevadm.c2
-rw-r--r--src/udev/udevd.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/udev/udevadm.c b/src/udev/udevadm.c
index 5217d7f9dd..818edee38f 100644
--- a/src/udev/udevadm.c
+++ b/src/udev/udevadm.c
@@ -99,8 +99,8 @@ int main(int argc, char *argv[])
if (udev == NULL)
goto out;
- log_open();
log_parse_environment();
+ log_open();
udev_set_log_fn(udev, udev_main_log);
label_init("/dev");
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 176e4e2930..ee78b396b7 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1083,8 +1083,9 @@ int main(int argc, char *argv[])
if (udev == NULL)
goto exit;
- log_open();
+ log_set_target(LOG_TARGET_AUTO);
log_parse_environment();
+ log_open();
udev_set_log_fn(udev, udev_main_log);
log_debug("version %s\n", VERSION);
label_init("/dev");