Skip to content

Commit fbc60ab

Browse files
authored
Merge pull request #2 from SKOV-DK/master
Keep on sending log to remote server, even if the log rotates.
2 parents 786083b + 31b9120 commit fbc60ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/netlog-manager.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ static int process_journal_input(Manager *m) {
231231

232232
r = manager_read_journal_input(m);
233233
if (r < 0) {
234+
m->current_cursor = mfree(m->current_cursor);
234235
/* Can't send the message. Seek one entry back. */
235236
r = sd_journal_previous(m->journal);
236237
if (r < 0)

0 commit comments

Comments
 (0)