You've already forked DataMate
refactor(annotation): 移除调试日志和异常堆栈跟踪
- 移除了项目映射获取接口中的traceback打印 - 简化了内部服务器错误响应消息 - 删除了映射服务中的多个调试日志输出 - 清理了响应数据构建过程中的调试信息
This commit is contained in:
@@ -225,9 +225,8 @@ async def get_mapping(
|
||||
except HTTPException:
|
||||
raise
|
||||
except Exception as e:
|
||||
import traceback
|
||||
logger.error(f"Error getting mapping: {e}\n{traceback.format_exc()}")
|
||||
raise HTTPException(status_code=500, detail=f"Internal server error: {str(e)}")
|
||||
logger.error(f"Error getting mapping: {e}")
|
||||
raise HTTPException(status_code=500, detail="Internal server error")
|
||||
|
||||
@router.get("/by-source/{dataset_id}", response_model=StandardResponse[PaginatedData[DatasetMappingResponse]])
|
||||
async def get_mappings_by_source(
|
||||
|
||||
Reference in New Issue
Block a user