style(router): 优化错误日志路由代码格式

- 移除多余的空白行
- 简化删除所有错误日志的日志记录逻辑
- 统一代码缩进和空行格式
This commit is contained in:
snaily
2025-08-16 03:43:36 +08:00
parent 13e1db7d69
commit d2906d89a6
+2 -2
View File
@@ -194,8 +194,8 @@ async def delete_all_error_logs_api(request: Request):
raise HTTPException(status_code=401, detail="Not authenticated") raise HTTPException(status_code=401, detail="Not authenticated")
try: try:
deleted_count = await error_log_service.process_delete_all_error_logs() await error_log_service.process_delete_all_error_logs()
logger.info(f"Successfully deleted all {deleted_count} error logs.") logger.info("Successfully deleted all error logs.")
# No body needed for 204 response # No body needed for 204 response
return Response(status_code=status.HTTP_204_NO_CONTENT) return Response(status_code=status.HTTP_204_NO_CONTENT)
except Exception as e: except Exception as e: