summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-09-10 06:06:43 -0400
committerAnthony G. Basile <blueness@gentoo.org>2013-09-10 06:06:43 -0400
commitb8a7ab71ed69cac6cea61f65987b1ce9465e53c2 (patch)
treeb499c7512feead3c3f67a9e8ecd2cb33a907f323
parent91b9dcfde39cb544782dba99ad10282b49df1a08 (diff)
udevd: respect the log-level set in /etc/udev/udev.conf
A regression introduced when we moved to systemd's logging is that the only way to adjust the log-level of the udev daemon is via the env var, kernel commandline or the commandline. This reintroduces support for specifying this in the configuration file. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r--src/udev/udevd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 8394db6454..7a4cf7725d 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -956,7 +956,10 @@ int main(int argc, char *argv[])
log_set_target(LOG_TARGET_AUTO);
log_open();
+
udev_set_log_fn(udev, udev_main_log);
+ log_set_max_level(udev_get_log_priority(udev));
+
log_debug("version %s\n", VERSION);
label_init("/dev");