diff options
Diffstat (limited to 'buildscripts/resmokelib/logging/buildlogger.py')
-rw-r--r-- | buildscripts/resmokelib/logging/buildlogger.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/buildscripts/resmokelib/logging/buildlogger.py b/buildscripts/resmokelib/logging/buildlogger.py index 3c7901dc6fe..d55cbf4e249 100644 --- a/buildscripts/resmokelib/logging/buildlogger.py +++ b/buildscripts/resmokelib/logging/buildlogger.py @@ -115,7 +115,11 @@ class _BaseBuildloggerHandler(handlers.BufferedHandler): self.endpoint = endpoint self.retry_buffer = [] - self.max_size = None + # Set a reasonable max payload size in case we don't get a HTTP 413 from LogKeeper + # before timing out. This limit is intentionally slightly larger than LogKeeper's + # limit of 32MB so we can still receive a 413 where appropriate but won't cause + # side effects. + self.max_size = 33 * 1024 * 1024 def process_record(self, record): """Return a tuple of the time the log record was created, and the message. |