mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
This simplifies how we manage log files, especially rotated ones. It also fixes a long-standing issue to lazily open rotated files so we don't needlessly start decompressing files that we don't need. Much of this is just setting things up for commits following this one. It uses ReaderAtSize for managing all files to be tailed and manages cleanups by passing closures. Signed-off-by: Brian Goff <cpuguy83@gmail.com>