Skip to content

Commit

Permalink
docs: improve logging for SSL_CONTEXT (#934)
Browse files Browse the repository at this point in the history
  • Loading branch information
llamafilm committed Mar 31, 2024
1 parent c2f74aa commit 280a702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/tesla_custom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async def async_setup_entry(hass, config_entry):
if config.get(CONF_API_PROXY_CERT):
try:
SSL_CONTEXT.load_verify_locations(config[CONF_API_PROXY_CERT])
_LOGGER.debug(SSL_CONTEXT)
_LOGGER.debug("Trusting CA: %s", SSL_CONTEXT.get_ca_certs()[-1])
except (FileNotFoundError, ssl.SSLError):
_LOGGER.warning(
"Unable to load custom SSL certificate from %s",
Expand Down

0 comments on commit 280a702

Please sign in to comment.