1 |
When using --debug, we want the output to our console. |
2 |
|
3 |
Signed-off-by: Marcus Folkesson <marcus.folkesson@×××××.com> |
4 |
--- |
5 |
src/udev/udevd.c | 4 +++- |
6 |
1 file changed, 3 insertions(+), 1 deletion(-) |
7 |
|
8 |
diff --git a/src/udev/udevd.c b/src/udev/udevd.c |
9 |
index aa34d84e5..cf826c6dc 100644 |
10 |
--- a/src/udev/udevd.c |
11 |
+++ b/src/udev/udevd.c |
12 |
@@ -1152,8 +1152,10 @@ int main(int argc, char *argv[]) { |
13 |
if (r < 0) |
14 |
log_warning_errno(r, "failed to parse kernel command line, ignoring: %m"); |
15 |
|
16 |
- if (arg_debug) |
17 |
+ if (arg_debug) { |
18 |
+ log_set_target(LOG_TARGET_CONSOLE); |
19 |
log_set_max_level(LOG_DEBUG); |
20 |
+ } |
21 |
|
22 |
if (getuid() != 0) { |
23 |
r = log_error_errno(EPERM, "root privileges required"); |
24 |
-- |
25 |
2.15.0 |