mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-16 12:28:02 +00:00
Use log-level debug for smartdevice query error reporting (#1587)
This commit is contained in:
@@ -378,7 +378,7 @@ class SmartDevice(Device):
|
|||||||
"""
|
"""
|
||||||
msg_part = "on first update" if first_update else "after first update"
|
msg_part = "on first update" if first_update else "after first update"
|
||||||
|
|
||||||
_LOGGER.error(
|
_LOGGER.debug(
|
||||||
"Error querying %s for modules '%s' %s: %s",
|
"Error querying %s for modules '%s' %s: %s",
|
||||||
self.host,
|
self.host,
|
||||||
module_names,
|
module_names,
|
||||||
@@ -391,7 +391,7 @@ class SmartDevice(Device):
|
|||||||
resp = await self.protocol.query({meth: params})
|
resp = await self.protocol.query({meth: params})
|
||||||
responses[meth] = resp[meth]
|
responses[meth] = resp[meth]
|
||||||
except Exception as iex:
|
except Exception as iex:
|
||||||
_LOGGER.error(
|
_LOGGER.debug(
|
||||||
"Error querying %s individually for module query '%s' %s: %s",
|
"Error querying %s individually for module query '%s' %s: %s",
|
||||||
self.host,
|
self.host,
|
||||||
meth,
|
meth,
|
||||||
|
Reference in New Issue
Block a user