GNOME Bugzilla – Bug 769507
gmessages: Don’t require is_journald() call before writer_journald()
Last modified: 2016-08-04 13:33:55 UTC
Patch attached.
Created attachment 332707 [details] [review] gmessages: Don’t require is_journald() call before writer_journald() g_log_writer_is_journald() works out whether the process’ stderr or stdout are redirected to journald. While the default writer function uses this in conjunction with g_log_writer_journald(), that does not always have to be the case — other writer functions might want to always write to the journal, and never write to stderr (for example). Consequently, automatically open the journal socket in writer_journald(), rather than is_journald().
Review of attachment 332707 [details] [review]: LGTM
Attachment 332707 [details] pushed as 5c3205f - gmessages: Don’t require is_journald() call before writer_journald()