moby--moby/daemon/logger/journald
Kir Kolyshkin 20a0e58a79 journald/read: fix/unify errors
1. Use "in-place" variables for if statements to limit their scope to
   the respectful `if` block.

2. Report the error returned from sd_journal_* by using CErr().

3. Use errors.New() instead of fmt.Errorf().

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2019-08-02 10:02:35 -07:00
..
journald.go journald/read: simplify/fix followJournal() 2019-08-02 10:02:35 -07:00
journald_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
journald_unsupported.go Add canonical import comment 2018-02-05 16:51:57 -05:00
read.go journald/read: fix/unify errors 2019-08-02 10:02:35 -07:00
read_native.go Add canonical import comment 2018-02-05 16:51:57 -05:00
read_native_compat.go Add canonical import comment 2018-02-05 16:51:57 -05:00
read_unsupported.go Add canonical import comment 2018-02-05 16:51:57 -05:00