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/jsonfilelog
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
..
jsonfilelog.go Rename 'context' to 'loginfo' in the logger module 2016-12-29 19:13:44 +08:00
jsonfilelog_test.go Rename 'context' to 'loginfo' in the logger module 2016-12-29 19:13:44 +08:00
read.go Close logwatcher on context cancellation 2017-01-17 14:36:13 -08:00