Skip to content

Commit

Permalink
journal: Add debug log for current cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
ssahani committed May 13, 2024
1 parent 9f6b092 commit 956ff6d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/netlog/netlog-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,17 @@ static int manager_read_journal_input(Manager *m) {
const void *data;
usec_t realtime;
size_t length;
char *cursor;
int r;

assert(m);
assert(m->journal);

log_debug("Reading from journal cursor=%s", m->last_cursor);
r = sd_journal_get_cursor(m->journal, &cursor);
if (r < 0)
return log_error_errno(r, "Failed to get cursor: %m");

log_debug("Reading from journal cursor=%s", cursor);

JOURNAL_FOREACH_DATA_RETVAL(m->journal, data, length, r) {

Expand Down

0 comments on commit 956ff6d

Please sign in to comment.