浏览代码

disable sending logs in Healthchecks

Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
Soumik Dutta 2 年之前
父节点
当前提交
99473c30a8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      borgmatic/hooks/healthchecks.py

+ 1 - 1
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(