fix(server): add error logging for device event handling
This commit is contained in:
1 parent
6dcca4da79
commit
8cb8b86192
1 file changed
+3
@@ -898,10 +898,13 @@ def device_event_blastware_file(
|
||||
except HTTPException:
|
||||
raise
|
||||
except ProtocolError as exc:
|
||||
log.error("blastware_file: protocol error: %s", exc, exc_info=True)
|
||||
raise HTTPException(status_code=502, detail=f"Protocol error: {exc}") from exc
|
||||
except OSError as exc:
|
||||
log.error("blastware_file: connection error: %s", exc, exc_info=True)
|
||||
raise HTTPException(status_code=502, detail=f"Connection error: {exc}") from exc
|
||||
except Exception as exc:
|
||||
log.error("blastware_file: unexpected error: %s", exc, exc_info=True)
|
||||
raise HTTPException(status_code=500, detail=f"Device error: {exc}") from exc
|
||||
|
||||
if ev is None:
|
||||
|
||||
Reference in new issue
Block a user