mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Guard expensive debug logging with isEnabledFor in alexa (#100137)
This commit is contained in:
parent
18e08bc79f
commit
0fe88d60ac
@ -378,6 +378,7 @@ async def async_send_changereport_message(
|
||||
|
||||
response_text = await response.text()
|
||||
|
||||
if _LOGGER.isEnabledFor(logging.DEBUG):
|
||||
_LOGGER.debug("Sent: %s", json.dumps(message_serialized))
|
||||
_LOGGER.debug("Received (%s): %s", response.status, response_text)
|
||||
|
||||
@ -531,6 +532,7 @@ async def async_send_doorbell_event_message(
|
||||
|
||||
response_text = await response.text()
|
||||
|
||||
if _LOGGER.isEnabledFor(logging.DEBUG):
|
||||
_LOGGER.debug("Sent: %s", json.dumps(message_serialized))
|
||||
_LOGGER.debug("Received (%s): %s", response.status, response_text)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user