projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdc3426
)
udevd: open log output early
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Mon, 1 Jul 2019 14:44:48 +0000
(16:44 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Thu, 4 Jul 2019 08:36:30 +0000
(10:36 +0200)
We'd log to the "console", losing structured logs during configuration file parsing.
Let's be nice to journalctl users, and log to the journal immediately.
src/udev/udevd.c
patch
|
blob
|
history
diff --git
a/src/udev/udevd.c
b/src/udev/udevd.c
index
25a1095
..
99efad5
100644
(file)
--- a/
src/udev/udevd.c
+++ b/
src/udev/udevd.c
@@
-1726,9
+1726,10
@@
static int run(int argc, char *argv[]) {
int r;
log_set_target(LOG_TARGET_AUTO);
+ log_open();
udev_parse_config_full(&arg_children_max, &arg_exec_delay_usec, &arg_event_timeout_usec, &arg_resolve_name_timing);
log_parse_environment();
- log_open();
+ log_open();
/* Done again to update after reading configuration. */
r = parse_argv(argc, argv);
if (r <= 0)