From e40e7266875b560692d42b4365f10fd9ad48f7a6 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 6 Apr 2022 22:00:18 -0700 Subject: [PATCH] Change Healthchecks logs truncation size from 10k bytes to 100k bytes, corresponding to that same change on Healthchecks.io. --- NEWS | 2 ++ borgmatic/hooks/healthchecks.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 8ffa41dd..fabee923 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,8 @@ * #516: Fix handling of TERM signal to exit borgmatic, not just forward the signal to Borg. * #517: Fix borgmatic exit code (so it's zero) when initial Borg calls fail but later retries succeed. + * Change Healthchecks logs truncation size from 10k bytes to 100k bytes, corresponding to that + same change on Healthchecks.io. 1.5.24 * #431: Add "working_directory" option to support source directories with relative paths. diff --git a/borgmatic/hooks/healthchecks.py b/borgmatic/hooks/healthchecks.py index 86986ef3..11966200 100644 --- a/borgmatic/hooks/healthchecks.py +++ b/borgmatic/hooks/healthchecks.py @@ -13,7 +13,7 @@ MONITOR_STATE_TO_HEALTHCHECKS = { } PAYLOAD_TRUNCATION_INDICATOR = '...\n' -PAYLOAD_LIMIT_BYTES = 10 * 1024 - len(PAYLOAD_TRUNCATION_INDICATOR) +PAYLOAD_LIMIT_BYTES = 100 * 1024 - len(PAYLOAD_TRUNCATION_INDICATOR) class Forgetful_buffering_handler(logging.Handler):