From a23bea64548038b55b3650ae73cb3b88f025ad68 Mon Sep 17 00:00:00 2001 From: Nicholas Yang Date: Fri, 8 Dec 2023 16:11:08 +0800 Subject: [PATCH] Fix: scripts.health: call `setup_logging()` before importing crmsh.reprot.utils --- scripts/health/collect.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/health/collect.py b/scripts/health/collect.py index a64fc67986..180b8660c6 100755 --- a/scripts/health/collect.py +++ b/scripts/health/collect.py @@ -6,7 +6,11 @@ import hashlib import platform import crm_script + +import crmsh.log +crmsh.log.setup_logging() from crmsh.report import utils + data = crm_script.get_input() PACKAGES = ['booth', 'cluster-glue', 'corosync', 'crmsh', 'csync2', 'drbd',