diff options
author | Marcus Folkesson <marcus.folkesson@gmail.com> | 2017-12-04 12:33:49 +0100 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2017-12-05 08:46:06 -0500 |
commit | 120924985c68ef7863bc065aaa41769f88fef322 (patch) | |
tree | f9068b0bcf4b9f4e3bd972e2ecdfbb02324e15e3 /src | |
parent | man: add short options to manpage (diff) | |
download | eudev-120924985c68ef7863bc065aaa41769f88fef322.tar.gz eudev-120924985c68ef7863bc065aaa41769f88fef322.tar.bz2 eudev-120924985c68ef7863bc065aaa41769f88fef322.zip |
udevd: spit out --debug to stderr
When using --debug, we want the output to our console.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/udev/udevd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c index aa34d84e5..cf826c6dc 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -1152,8 +1152,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"); |