修改打印日志
This commit is contained in:
@@ -53,7 +53,7 @@ class StatusChange(models.Model):
|
|||||||
if not ret.get('error'):
|
if not ret.get('error'):
|
||||||
logging.info('接口已经执行=============')
|
logging.info('接口已经执行=============')
|
||||||
else:
|
else:
|
||||||
logging.error('工厂加工同步订单状态失败 {}'.format(ret.text))
|
logging.error('工厂加工同步订单状态失败 {}'.format(ret))
|
||||||
raise UserError('工厂加工同步订单状态失败')
|
raise UserError('工厂加工同步订单状态失败')
|
||||||
except UserError as e:
|
except UserError as e:
|
||||||
logging.error('工厂加工同步订单状态失败 {}'.format(e))
|
logging.error('工厂加工同步订单状态失败 {}'.format(e))
|
||||||
|
|||||||
Reference in New Issue
Block a user