X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fjournal-remote%2Fjournal-remote-write.c;h=3b00ff520031218eb97d4a2f0d41bc306b5b8f99;hb=a83f403760cb63b1bf7787e9ff325ffb6d891d39;hp=449636cd8c3180b389776151e69b179bcad4db5a;hpb=4a0a6ac03864998c83918175609275df712a5a05;p=elogind.git diff --git a/src/journal-remote/journal-remote-write.c b/src/journal-remote/journal-remote-write.c index 449636cd8..3b00ff520 100644 --- a/src/journal-remote/journal-remote-write.c +++ b/src/journal-remote/journal-remote-write.c @@ -114,10 +114,12 @@ int writer_write(Writer *s, if (r >= 0) return 1; - log_info("%s: Write failed, rotating", s->journal->path); + log_debug("%s: Write failed, rotating: %s", s->journal->path, strerror(-r)); r = do_rotate(&s->journal, compress, seal); if (r < 0) return r; + else + log_info("%s: Successfully rotated journal", s->journal->path); log_debug("Retrying write."); r = journal_file_append_entry(s->journal, ts, iovw->iovec, iovw->count,