From 88f1bcfb8a3dc39cd967205c586f7547118a0c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Tomsa?= Date: Mon, 25 Mar 2024 15:41:37 +0100 Subject: [PATCH] Rename INSIGHTS_DEBUG to INSIGHTS_VERBOSE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Štěpán Tomsa --- src/insights_client/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/insights_client/__init__.py b/src/insights_client/__init__.py index 1f100ada..70da23d0 100644 --- a/src/insights_client/__init__.py +++ b/src/insights_client/__init__.py @@ -17,7 +17,7 @@ LOG_FORMAT = "%(asctime)s %(levelname)8s %(name)s:%(lineno)s %(message)s" -INSIGHTS_DEBUG = os.environ.get("INSIGHTS_DEBUG", "").lower() == "true" +INSIGHTS_VERBOSE = os.environ.get("INSIGHTS_VERBOSE", "").lower() == "true" BYPASS_GPG = os.environ.get("BYPASS_GPG", "").lower() == "true" GPG_KEY = "/etc/insights-client/redhattools.pub.gpg" @@ -39,7 +39,7 @@ def set_up_logging(): - if not INSIGHTS_DEBUG: + if not INSIGHTS_VERBOSE: return None logger.setLevel(logging.DEBUG) @@ -386,7 +386,7 @@ def _main(): # Add the insights-config here try: config_args = {} - if INSIGHTS_DEBUG: + if INSIGHTS_VERBOSE: config_args["verbose"] = True config = InsightsConfig(_print_errors=True, **config_args).load_all() except ValueError as e: