* [eudev] [PATCH] udevd: spit out --debug to stderr
@ 2017-12-04 11:33 Marcus Folkesson
0 siblings, 0 replies; only message in thread
From: Marcus Folkesson @ 2017-12-04 11:33 UTC (permalink / raw
To: eudev; +Cc: marcus.folkesson
When using --debug, we want the output to our console.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
---
src/udev/udevd.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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");
--
2.15.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-04 11:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-04 11:33 [eudev] [PATCH] udevd: spit out --debug to stderr Marcus Folkesson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox