Skip to content

Commit ebf909d

Browse files
committed
Make camera fails output debug logs
1 parent 2786f99 commit ebf909d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

custom_components/xtend_tuya/camera.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ async def stream_source(self) -> str | None:
353353
try:
354354
return await super().stream_source()
355355
except Exception as e:
356-
LOGGER.error(
356+
LOGGER.debug(
357357
f"Error getting stream source for device {self.device.id}: {e}",
358358
stack_info=True,
359359
)

custom_components/xtend_tuya/multi_manager/managers/tuya_sharing/xt_tuya_sharing_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def __request(
176176
ret = response.json()
177177

178178
if not ret.get("success"):
179-
LOGGER.warning(f"[SHARING API]API call error: Request: {method} {path} PARAMS: {json.dumps(params, ensure_ascii=False, indent=2) if params is not None else ''} BODY: {json.dumps(body, ensure_ascii=False, indent=2) if body is not None else ''}, Response: {json.dumps(ret, ensure_ascii=False, indent=2)}")
179+
LOGGER.debug(f"[SHARING API]API call error: Request: {method} {path} PARAMS: {json.dumps(params, ensure_ascii=False, indent=2) if params is not None else ''} BODY: {json.dumps(body, ensure_ascii=False, indent=2) if body is not None else ''}, Response: {json.dumps(ret, ensure_ascii=False, indent=2)}")
180180
raise Exception(
181181
f"[SHARING API]API call error: Request: {method} {path} PARAMS: {json.dumps(params, ensure_ascii=False, indent=2) if params is not None else ''} BODY: {json.dumps(body, ensure_ascii=False, indent=2) if body is not None else ''}, Response: {json.dumps(ret, ensure_ascii=False, indent=2)}"
182182
)

0 commit comments

Comments
 (0)