Skip to content

Commit

Permalink
Rename INSIGHTS_DEBUG to INSIGHTS_VERBOSE
Browse files Browse the repository at this point in the history
Signed-off-by: Štěpán Tomsa <stomsa@redhat.com>
  • Loading branch information
Glutexo committed Apr 15, 2024
1 parent 531ab04 commit 88f1bcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/insights_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -39,7 +39,7 @@


def set_up_logging():
if not INSIGHTS_DEBUG:
if not INSIGHTS_VERBOSE:
return None

logger.setLevel(logging.DEBUG)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 88f1bcf

Please sign in to comment.