summaryrefslogtreecommitdiff
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2015-07-01 19:20:59 +0200
committerKay Sievers <kay@vrfy.org>2015-07-01 19:20:59 +0200
commit78d3e041a57b0c790b7c0b01906d9eb19a031029 (patch)
tree52fe3a818a1d2f701798c5fdd258ae77fd189380 /src/udev/udevd.c
parent3723263f4989ebeb087cf0a1259884de962bc85e (diff)
udevd: force --debug mode to stderr
https://github.com/systemd/systemd/issues/462
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r--src/udev/udevd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index cf15ddf641..617bf2fe22 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1625,8 +1625,10 @@ int main(int argc, char *argv[]) {
if (r < 0)
log_warning_errno(r, "failed to parse kernel command line, ignoring: %m");
- if (arg_debug)
+ if (arg_debug) {
+ log_set_target(LOG_TARGET_CONSOLE);
log_set_max_level(LOG_DEBUG);
+ }
if (getuid() != 0) {
r = log_error_errno(EPERM, "root privileges required");