chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journal-remote: improve some messages
[elogind.git]
/
src
/
journal-remote
/
journal-remote-write.c
diff --git
a/src/journal-remote/journal-remote-write.c
b/src/journal-remote/journal-remote-write.c
index 449636cd8c3180b389776151e69b179bcad4db5a..3b00ff520031218eb97d4a2f0d41bc306b5b8f99 100644
(file)
--- 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;
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;
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,
log_debug("Retrying write.");
r = journal_file_append_entry(s->journal, ts, iovw->iovec, iovw->count,