mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Add payload to debug output of rest_command (#39190)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user