mirror of
https://gitee.com/mao-peng/MangoTestingPlatform.git
synced 2025-12-06 11:59:15 +08:00
优化
This commit is contained in:
@@ -28,9 +28,9 @@ def request_log(is_serialize=True):
|
||||
return ResponseModel(code=-300, msg='响应的数据非json格式,请检查后端服务是否可以正常运行~',
|
||||
data=response.text if response else None)
|
||||
except Exception as error:
|
||||
log.error(f'HTTP请求返回数据异常-1,响应:{response.text if response else response}')
|
||||
log.debug(f'HTTP请求返回数据异常-2,类型:{type(error)},详情:{error},明细:{traceback.format_exc()}')
|
||||
return ResponseModel(code=-300, msg='请求发送未知错误,请打开调式,再次触发这个操作,然后发送日志给管理员!',
|
||||
return ResponseModel(code=-300,
|
||||
msg='请求发送未知错误,请打开调式,再次触发这个操作,然后发送日志给管理员!',
|
||||
data=str(error))
|
||||
|
||||
return wrapper
|
||||
|
||||
Reference in New Issue
Block a user