diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-10-26 09:45:35 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-06 15:45:22 +0900 |
commit | 6174a243f919ea82ee5118bf5fe9613cf29056f7 (patch) | |
tree | b2e3d78b970ed383b9086efca5b03b79532a2bdc | |
parent | a5db6debcdc4de4381a878bd832a57041d86c41e (diff) | |
download | systemd-6174a243f919ea82ee5118bf5fe9613cf29056f7.tar.gz systemd-6174a243f919ea82ee5118bf5fe9613cf29056f7.tar.bz2 systemd-6174a243f919ea82ee5118bf5fe9613cf29056f7.zip |
udev: setting the same log level to SYSTEMD realm
Otherwise, many debug logs from libsystemd are dropped.
-rw-r--r-- | src/udev/udevadm-hwdb.c | 2 | ||||
-rw-r--r-- | src/udev/udevadm.c | 1 | ||||
-rw-r--r-- | src/udev/udevd.c | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/udev/udevadm-hwdb.c b/src/udev/udevadm-hwdb.c index 4eb2897b21..e9a1af65fc 100644 --- a/src/udev/udevadm-hwdb.c +++ b/src/udev/udevadm-hwdb.c @@ -80,8 +80,6 @@ static int parse_argv(int argc, char *argv[]) { int hwdb_main(int argc, char *argv[], void *userdata) { int r; - log_set_max_level_realm(LOG_REALM_SYSTEMD, log_get_max_level()); - r = parse_argv(argc, argv); if (r <= 0) return r; diff --git a/src/udev/udevadm.c b/src/udev/udevadm.c index e627c50ff9..8ed679698a 100644 --- a/src/udev/udevadm.c +++ b/src/udev/udevadm.c @@ -112,6 +112,7 @@ int main(int argc, char *argv[]) { udev_parse_config(); log_parse_environment(); log_open(); + log_set_max_level_realm(LOG_REALM_SYSTEMD, log_get_max_level()); mac_selinux_init(); r = parse_argv(argc, argv); diff --git a/src/udev/udevd.c b/src/udev/udevd.c index 7ec30b92c3..49f178ef08 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -1702,6 +1702,8 @@ int main(int argc, char *argv[]) { log_set_max_level(LOG_DEBUG); } + log_set_max_level_realm(LOG_REALM_SYSTEMD, log_get_max_level()); + r = must_be_root(); if (r < 0) goto exit; |