1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

udev/cdrom_id: re-enable logging related functions

The logging related functions are mistakenly located in main() by
a084b38789, and dropped by
23afa884d4.
This commit is contained in:
Yu Watanabe 2021-01-20 18:48:42 +09:00 committed by Luca Boccassi
parent 888f65ace6
commit 4dbc0be2e5

View File

@ -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);