mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
![]() After tailing a file, if the number of lines requested is > the number of lines in the file, this would cause a json unmarshalling error to occur when we later try to go follow the file. So brute force set it to the end if any tailing occurred. There is potential that there could be some missing log messages if logs are being written very quickly, however I was not able to make this happen even with `while true; do echo hello; done`, so this is probably acceptable. While testing this I also found a panic in LogWatcher.Close can be called twice due to a race. Fix channel close to only close when there has been no signal to the channel. Signed-off-by: Brian Goff <cpuguy83@gmail.com> |
||
---|---|---|
.. | ||
fluentd | ||
gelf | ||
journald | ||
jsonfilelog | ||
syslog | ||
copier.go | ||
copier_test.go | ||
factory.go | ||
logger.go |