]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journalctl.c
journalctl: clean up how we log errors
authorLennart Poettering <lennart@poettering.net>
Mon, 18 May 2015 22:25:45 +0000 (00:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 18 May 2015 22:26:48 +0000 (00:26 +0200)
commitb56d608e6977f7731a6fccd593c50eec1a69f466
tree3498796985d0c8fe7a43ac689bc7336371a4861d
parent45bc27b621c51b9d0e0229835deb6d188bcd417b
journalctl: clean up how we log errors

All functions should either log the errors they run into, or only return
them in which case the caller should log them.

Make sure this rule is followed, so that each error is logged precisely
once, and neither never, nor more than once.
src/journal/journalctl.c
src/shared/logs-show.c