1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/logger
Shijiang Wei e41eae8b42 fix a race in json logger reader
The json decoder starts to decode immediately an inotify event is
received.
But at the time the inotify event is trigged, the json log
entry might haven't been fully written to the disk.
In this case the decoder will return an "io.UnexpectedEOF" error, but
there is still data remaining in the decoder's buffer. And the data
should be passed to the decoder when the next inotify event is
triggered.

Signed-off-by: Shijiang Wei <mountkin@gmail.com>
2015-10-31 02:28:23 +08:00
..
awslogs [awslogs] Auto-detect region on EC2 instances 2015-10-27 23:47:28 +00:00
fluentd
gelf
journald add labels/env log option for journald 2015-10-12 21:12:46 +02:00
jsonfilelog fix a race in json logger reader 2015-10-31 02:28:23 +08:00
loggerutils
splunk Add Splunk logging driver #16207 2015-10-23 13:37:53 -07:00
syslog
context.go
copier.go
copier_test.go
factory.go
logger.go