How to debug libraries in Hassio

Hi,
I’m trying to debug https://github.com/home-assistant/home-assistant/issues/8554 on Hassio on RPi3.
I changed the component to enable debugging, that in turn sets this in the evohomeclient library:

if debug:
    http_client.HTTPConnection.debuglevel = 1
    logging.getLogger().setLevel(logging.DEBUG)
    requests_log.setLevel(logging.DEBUG)
    requests_log.propagate = True

I also set the HA logging level to “debug”

logger:
  default: debug

Even with this, in the log there are only the exceptions, but no other messages or http traffic.

The communication to the Honeywell server is TLS, so even traffic sniffing is not an option.

How can I log the traffic to check the request/response that i causing the exception?

Thanks,

Nicholas

1 Like