moby--moby/daemon/logger
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
..
awslogs Follow up to PR 38407 2019-01-03 01:23:24 +00:00
etwlogs
fluentd bump fluent/fluent-logger-golang v1.4.0 2019-04-16 11:06:30 +02:00
gcplogs
gelf Format code with gofmt -s from go-1.11beta1 2018-09-06 15:24:16 -07:00
journald journald/read: fix/unify errors 2019-08-09 16:50:39 -07:00
jsonfilelog Use assert.NilError() instead of assert.Assert() 2019-01-21 13:16:02 +01:00
local Use assert.NilError() instead of assert.Assert() 2019-01-21 13:16:02 +01:00
logentries
loggerutils Use assert.NilError() instead of assert.Assert() 2019-01-21 13:16:02 +01:00
splunk Format code with gofmt -s from go-1.11beta1 2018-09-06 15:24:16 -07:00
syslog Add options validation to syslog logger test 2018-12-24 20:43:41 +01:00
templates
adapter.go Adds PartialLogMetadata to encode protobuf for logger plugins 2019-04-09 16:14:33 +05:00
adapter_test.go daemon.ContainerLogs(): fix resource leak on follow 2018-09-06 11:47:42 -07:00
copier.go
copier_test.go
factory.go
logger.go Cleanup duplication in daemon files 2018-11-13 10:42:57 +08:00
logger_test.go
loginfo.go
metrics.go
plugin.go Entropy cannot be saved 2019-06-11 17:40:09 +02:00
plugin_unix.go
plugin_unsupported.go
proxy.go
ring.go
ring_test.go