DAQ: added error message to log when daq status fails
This commit is contained in:
@@ -87,6 +87,7 @@ async def status(token: str = Depends(oauth2_scheme)) -> DAQStatusModel:
|
||||
)
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Error getting status: {e}")
|
||||
raise HTTPException(
|
||||
status_code=api_status.HTTP_500_INTERNAL_SERVER_ERROR,
|
||||
detail=f"Error getting status: {e}"
|
||||
|
||||
Reference in New Issue
Block a user