sd_journal *j = NULL;
unsigned line = 0;
- log_set_max_level(LOG_DEBUG);
- log_set_target(LOG_TARGET_CONSOLE);
-
log_parse_environment();
log_open();
if (r <= 0)
goto finish;
- r = sd_journal_open(&j);
+ r = sd_journal_open(&j, 0);
if (r < 0) {
log_error("Failed to open journal: %s", strerror(-r));
goto finish;