修改打印日志

This commit is contained in:
hujiaying
2024-09-05 09:53:32 +08:00
parent 18b0cc6ea0
commit 00809d88f6

View File

@@ -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))