moby--moby/daemon/logger/loggerutils
Brian Goff 56ba96b6c1 Clean up some logfile implementation
- Ignore some pointless errors (like not exist on remove)
- Consolidate error handling/logging
- Fix race condition reading last log timestamp in the compression
  goroutine. This needs to be done while holding the write lock, which
  is not (or may not be) locked while compressing a rotated log file.
- Remove some indentation and consolidate mutex unlocking in
  `compressFile`

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2020-10-28 20:36:32 +00:00
..
cache Support configuration of log cacher. 2020-02-19 17:02:34 -05:00
file_unix.go Use FILE_SHARE_DELETE for log files on Windows. 2019-09-23 16:45:07 -07:00
file_windows.go Use FILE_SHARE_DELETE for log files on Windows. 2019-09-23 16:45:07 -07:00
file_windows_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
log_tag.go Add canonical import comment 2018-02-05 16:51:57 -05:00
log_tag_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
logfile.go Clean up some logfile implementation 2020-10-28 20:36:32 +00:00
logfile_test.go Fix various race conditions in loggerutils 2020-10-28 20:36:32 +00:00