summaryrefslogtreecommitdiff
path: root/src/journal-remote/journal-remote-write.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-01 23:18:44 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-15 22:34:41 -0400
commita83f403760cb63b1bf7787e9ff325ffb6d891d39 (patch)
treedb63ca7b6090151052c232a30ae62c20e3153b2f /src/journal-remote/journal-remote-write.c
parent4a0a6ac03864998c83918175609275df712a5a05 (diff)
journal-remote: improve some messages
Diffstat (limited to 'src/journal-remote/journal-remote-write.c')
-rw-r--r--src/journal-remote/journal-remote-write.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/journal-remote/journal-remote-write.c b/src/journal-remote/journal-remote-write.c
index 449636cd8c..3b00ff5200 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,