moby--moby/daemon/logger/loggerutils
Kazuyoshi Kato d13e162a63
Handle long log messages correctly on SizedLogger
Loggers that implement BufSize() (e.g. awslogs) uses the method to
tell Copier about the maximum log line length. However loggerWithCache
and RingBuffer hide the method by wrapping loggers.

As a result, Copier uses its default 16KB limit which breaks log
lines > 16kB even the destinations can handle that.

This change implements BufSize() on loggerWithCache and RingBuffer to
make sure these logger wrappes don't hide the method on the underlying
loggers.

Fixes #41794.

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
(cherry picked from commit bb11365e96)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-02-17 21:19:02 +01:00
..
cache Handle long log messages correctly on SizedLogger 2021-02-17 21:19:02 +01:00
file_unix.go Fix logfile to open all files with custom openFile 2020-10-28 20:36:32 +00:00
file_windows.go Fix windows log file rotation with readers 2020-10-29 18:38:30 +00: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 Fix windows log file rotation with readers 2020-10-29 18:38:30 +00:00
logfile_test.go Fix windows log file rotation with readers 2020-10-29 18:38:30 +00:00