mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
07b51ed300
When closing the log-file, and the file is already closed, there's no need to log an error. This patch adds a `closed` boolean to check if the file was closed, and if so, skip closing the file. This prevents errors like this being logged: level=error msg="Error closing logger: invalid argument" Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
log_tag.go | ||
log_tag_test.go | ||
rotatefilewriter.go |