Skip to content

Commit

Permalink
feature: log details about CA bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Feb 19, 2024
1 parent 57476b2 commit 4dd2e6a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions qgis_deployment_toolbelt/utils/journalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
from socket import gethostname

# 3rd party
import certifi
from requests.utils import DEFAULT_CA_BUNDLE_PATH

# Imports depending on operating system
if "linux" in uname().system.lower():
import distro
Expand Down Expand Up @@ -131,6 +134,13 @@ def headers():
else:
logger.debug("No network proxies detected")

# SSL CA certificates
logger.debug(f"Installed certificate authority (CA) bundle: {certifi.where()}")
logger.debug(f"Default certificate authority (CA) bundle: {DEFAULT_CA_BUNDLE_PATH}")
logger.debug(
f"Certificate authority (CA) bundle to use: {getenv('REQUESTS_CA_BUNDLE', getenv('CURL_CA_BUNDLE'))}"
)


def get_logger_filepath() -> Path | None:
"""Retrieve log filepath within logger handlers.
Expand Down

0 comments on commit 4dd2e6a

Please sign in to comment.