diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-01-20 10:48:42 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2021-01-20 19:31:10 +0100 |
commit | 4dbc0be2e5b2e4ad250b93f7f16194486a0a31db (patch) | |
tree | 5c1a2bdfcd1f253e4c740a50e2b9a63b1a6e588b /src/udev/cdrom_id/cdrom_id.c | |
parent | path-util: simplify check_x_access() (diff) | |
download | systemd-4dbc0be2e5b2e4ad250b93f7f16194486a0a31db.tar.xz systemd-4dbc0be2e5b2e4ad250b93f7f16194486a0a31db.zip |
udev/cdrom_id: re-enable logging related functions
The logging related functions are mistakenly located in main() by
a084b3878955bc1b93adcaa7a41acb83b18eff9b, and dropped by
23afa884d4f3bcd97160a893816f9ba170f62ad4.
Diffstat (limited to '')
-rw-r--r-- | src/udev/cdrom_id/cdrom_id.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/udev/cdrom_id/cdrom_id.c b/src/udev/cdrom_id/cdrom_id.c index f6f45f4e2a..9b638092fb 100644 --- a/src/udev/cdrom_id/cdrom_id.c +++ b/src/udev/cdrom_id/cdrom_id.c @@ -948,6 +948,11 @@ static int run(int argc, char *argv[]) { _cleanup_(context_clear) Context c; int r; + log_set_target(LOG_TARGET_AUTO); + udev_parse_config(); + log_parse_environment(); + log_open(); + context_init(&c); r = parse_argv(argc, argv); |