summaryrefslogtreecommitdiff
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-07-13 15:45:45 +0200
committerLennart Poettering <lennart@poettering.net>2012-07-13 15:45:45 +0200
commit4b2615684b312a6457d9fdd8f455bc2a0def9bc9 (patch)
tree488455a97c249651471c292cda1ee8b1bc011a10 /src/udev/udevd.c
parenta504223d9a448ab338e369997c39c04067c8f906 (diff)
log: correct usage of logging API at a few places
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r--src/udev/udevd.c3
1 files changed, 2 insertions, 1 deletions
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");