mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +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:
|
||||
_LOGGER.debug(
|
||||
"Success. Url: %s. Status code: %d",
|
||||
"Success. Url: %s. Status code: %d. Payload: %s",
|
||||
response.url,
|
||||
response.status,
|
||||
payload,
|
||||
)
|
||||
else:
|
||||
_LOGGER.warning(
|
||||
"Error. Url: %s. Status code %d",
|
||||
"Error. Url: %s. Status code %d. Payload: %s",
|
||||
response.url,
|
||||
response.status,
|
||||
payload,
|
||||
)
|
||||
|
||||
except asyncio.TimeoutError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user