journal: don't emit space usage message when opening the journal (#4190)
authorFranck Bui <fbui@suse.com>
Tue, 11 Oct 2016 14:51:37 +0000 (16:51 +0200)
committerFranck Bui <fbui@suse.com>
Wed, 19 Oct 2016 07:53:07 +0000 (09:53 +0200)
commit18e758bf25d49ec7af589df9a2a4e6c905281a4e
treeafcb96ccd23d4639cdebd7661d3fb16856b4535e
parentcba5629e870bdab445a3b2ad42b140667c22eac1
journal: don't emit space usage message when opening the journal (#4190)

This patch makes system_journal_open() stop emitting the space usage
message. The caller is now free to emit this message when appropriate.

When restarting the journal, we can now emit the message *after*
flushing the journal (if required) so that all flushed log entries are
written in the persistent journal *before* the status message.

This is required since the status message is always younger than the
flushed entries.

Fixes #4190.
src/journal/journald-server.c
src/journal/journald.c