Commit 4b261568 authored by Lennart Poettering's avatar Lennart Poettering

log: correct usage of logging API at a few places

parent a504223d
......@@ -91,7 +91,6 @@ static int parse_argv(int argc, char *argv[]) {
int main(int argc, char *argv[]) {
int r;
log_set_target(LOG_TARGET_AUTO);
log_parse_environment();
log_open();
......
......@@ -738,6 +738,7 @@ static int parse_argv(int argc, char *argv[]) {
int main(int argc, char *argv[]) {
int r;
log_set_target(LOG_TARGET_AUTO);
log_parse_environment();
log_open();
......
......@@ -99,8 +99,8 @@ int main(int argc, char *argv[])
if (udev == NULL)
goto out;
log_open();
log_parse_environment();
log_open();
udev_set_log_fn(udev, udev_main_log);
label_init("/dev");
......
......@@ -1083,8 +1083,9 @@ int main(int argc, char *argv[])
if (udev == NULL)
goto exit;
log_open();
log_set_target(LOG_TARGET_AUTO);
log_parse_environment();
log_open();
udev_set_log_fn(udev, udev_main_log);
log_debug("version %s\n", VERSION);
label_init("/dev");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment