moby/daemon/logger/journald
Kir Kolyshkin dd7ef76474 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>
 (cherry picked from commit 20a0e58a79)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2019-08-09 16:50:39 -07:00
..
journald.go journald/read: simplify/fix followJournal() 2019-08-09 16:47:34 -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-09 16:50:39 -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