mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-11-24 18:28:21 +00:00
Log smartprotocol requests (#575)
* Log smartprotocol requests Also, comment out encrypted secure_passthrough response for the time being * Fix linting
This commit is contained in:
@@ -124,6 +124,11 @@ class SmartProtocol(TPLinkProtocol):
|
||||
await self._transport.login(login_request)
|
||||
|
||||
smart_request = self.get_smart_request(smart_method, smart_params)
|
||||
_LOGGER.debug(
|
||||
"%s >> %s",
|
||||
self.host,
|
||||
_LOGGER.isEnabledFor(logging.DEBUG) and pf(smart_request),
|
||||
)
|
||||
response_data = await self._transport.send(smart_request)
|
||||
|
||||
_LOGGER.debug(
|
||||
|
||||
Reference in New Issue
Block a user