summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-08-08 21:44:02 +0200
committerTom Gundersen <teg@jklm.no>2013-08-09 01:38:17 +0200
commit689a97f52383110bf0da049e8f6294993f4020dd (patch)
treeddc6fcde8c309adb51e6970e06d0e7d1ce92fe48
parent68eda4bd168306f51c90e5d22824c494d709289e (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.
-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 45ec3d681f..7c6c5d6a87 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -923,7 +923,10 @@ int main(int argc, char *argv[])
log_set_target(LOG_TARGET_AUTO);
log_parse_environment();
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");