From 99473c30a8d9c5fa09201589121518e08923a0f7 Mon Sep 17 00:00:00 2001 From: Soumik Dutta Date: Wed, 3 May 2023 19:01:07 +0530 Subject: [PATCH] disable sending logs in Healthchecks Signed-off-by: Soumik Dutta --- borgmatic/hooks/healthchecks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borgmatic/hooks/healthchecks.py b/borgmatic/hooks/healthchecks.py index 4cafc49f..af2bcd67 100644 --- a/borgmatic/hooks/healthchecks.py +++ b/borgmatic/hooks/healthchecks.py @@ -76,7 +76,7 @@ def initialize_monitor(hook_config, config_filename, monitoring_log_level, dry_r we can send them all to Healthchecks upon a finish or failure state. But skip this if the "send_logs" option is false. ''' - if hook_config.get('send_logs') is False: + if hook_config.get('send_logs') is False or monitoring_log_level == logging.DISABLED: return ping_body_limit = max(