mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Add payload to debug output of rest_command (#39190)
This commit is contained in:
parent
ad3e520e09
commit
60c7a91794
@ -122,15 +122,17 @@ async def async_setup(hass, config):
|
|||||||
|
|
||||||
if response.status < HTTP_BAD_REQUEST:
|
if response.status < HTTP_BAD_REQUEST:
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"Success. Url: %s. Status code: %d",
|
"Success. Url: %s. Status code: %d. Payload: %s",
|
||||||
response.url,
|
response.url,
|
||||||
response.status,
|
response.status,
|
||||||
|
payload,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"Error. Url: %s. Status code %d",
|
"Error. Url: %s. Status code %d. Payload: %s",
|
||||||
response.url,
|
response.url,
|
||||||
response.status,
|
response.status,
|
||||||
|
payload,
|
||||||
)
|
)
|
||||||
|
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user