We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e1fdb0 commit d755b41Copy full SHA for d755b41
custom_components/ecoflow_api/api.py
@@ -232,7 +232,9 @@ async def _handle_response(
232
EcoFlowApiError: If API returns an error
233
"""
234
text = await response.text()
235
- _LOGGER.debug("Response status: %s, body: %s", response.status, text)
+ _LOGGER.debug("Response status: %s", response.status)
236
+ _LOGGER.debug("Response headers: %s", dict(response.headers))
237
+ _LOGGER.debug("Response body: %s", text[:500] if len(text) > 500 else text)
238
239
if response.status == 401:
240
raise EcoFlowAuthError("Authentication failed - check your API credentials")
0 commit comments