moby--moby/daemon/logger
Kenfe-Mickael Laventure fb2bb3653e Close logwatcher on context cancellation
This commit addresses 2 issues:

  1. in `tailfile()` if somehow the `logWatcher.Msg` were to become full and the watcher closed before space was made into it, we were getting stuck there forever since we were not checking for the watcher getting closed
  2. when servicing `docker logs`, if the command was cancelled we were not closing the watcher (and hence notifying it to stop copying data)

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-01-17 14:36:13 -08:00
..
awslogs
etwlogs
fluentd
gcplogs
gelf
journald
jsonfilelog
logentries
loggerutils
splunk
syslog
copier.go
copier_test.go
factory.go
logger.go
logger_test.go
loginfo.go