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
Sebastiaan van Stijn 07b51ed300 Don't log error if file is already closed
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>
2017-05-29 17:42:37 +02:00
..
awslogs Improved poor memory efficiency of awslogs 2017-05-18 23:30:00 +09:00
etwlogs Merge pull request #30136 from tg123/master 2017-02-06 14:00:00 -08:00
fluentd Merge pull request #27565 from rothrock/env-by-regex 2017-03-31 10:46:48 -04:00
gcplogs gcplogging driver MRPB set 2017-05-09 14:24:43 +02:00
gelf Merge pull request #27565 from rothrock/env-by-regex 2017-03-31 10:46:48 -04:00
journald Prevent ContainerLogs from hanging if container doesn't run for long 2017-04-20 12:27:51 +01:00
jsonfilelog Prevent ContainerLogs from hanging if container doesn't run for long 2017-04-20 12:27:51 +01:00
logentries Merge pull request #27565 from rothrock/env-by-regex 2017-03-31 10:46:48 -04:00
loggerutils Don't log error if file is already closed 2017-05-29 17:42:37 +02:00
splunk Merge pull request #27565 from rothrock/env-by-regex 2017-03-31 10:46:48 -04:00
syslog Merge pull request #27565 from rothrock/env-by-regex 2017-03-31 10:46:48 -04:00
adapter.go Implement plugins for logging drivers 2017-04-10 13:17:20 -04:00
adapter_test.go Implement plugins for logging drivers 2017-04-10 13:17:20 -04:00
copier.go Use sync.Pool for logger Messages 2017-02-01 13:52:37 -05:00
copier_test.go use t.Fatal() to output the err message where the values used for formatting 2017-02-23 10:16:22 +08:00
factory.go Add logdrivers to /info 2017-04-11 18:07:15 -04:00
logger.go Implement plugins for logging drivers 2017-04-10 13:17:20 -04:00
logger_test.go Implement plugins for logging drivers 2017-04-10 13:17:20 -04:00
loginfo.go Use a regex to match environment variables #27565 2017-01-19 15:30:11 -08:00
plugin.go Implement plugins for logging drivers 2017-04-10 13:17:20 -04:00
plugin_unix.go Implement plugins for logging drivers 2017-04-10 13:17:20 -04:00
plugin_unsupported.go Implement plugins for logging drivers 2017-04-10 13:17:20 -04:00
proxy.go Implement plugins for logging drivers 2017-04-10 13:17:20 -04:00
ring.go Use sync.Pool for logger Messages 2017-02-01 13:52:37 -05:00
ring_test.go fix some typos from module contrib to man 2017-02-18 10:08:55 +08:00