Commit d66c1e6f authored by Davve's avatar Davve

修改日志错误

parent c95817d1
......@@ -116,6 +116,6 @@ class GroupRelatedUserGET(APIView):
try:
self.rpc['venus/sun/group/user/edit'](id=group_id, user_id=user_id, data=data).unwrap()
except Exception as e:
error_logger.error(u'编辑小组用户%d信息失败%s'%(user_id, e))
error_logger.error(u'编辑小组用户%s信息失败%s'%(user_id, e))
raise
return
\ No newline at end of file
......@@ -47,7 +47,7 @@ class UpdateOrCreateView(APIView):
try:
data = self.rpc['venus/sun/pick/get'](id=id).unwrap()
except Exception as e:
error_logger.error(u'获取%d-pcik信息失败%s' %(id, e))
error_logger.error(u'获取%s-pcik信息失败%s' %(id, e))
raise
return {'data': data}
......@@ -89,7 +89,7 @@ class UpdateOrCreateView(APIView):
try:
self.rpc['venus/sun/pick/edit'](id=id, data=data).unwrap()
except Exception as e:
error_logger.error(u'编辑%d-pcik信息失败%s' % (id, e))
error_logger.error(u'编辑%s-pcik信息失败%s' % (id, e))
raise
return {
'message': '操作成功'
......@@ -118,7 +118,7 @@ class PickUserListView(APIView):
try:
data = self.rpc[dispatch_rpc_endpoint[pick_type]](offset=(offset - 1) * limit, limit=limit, filters=filters).unwrap()
except Exception as e:
error_logger.error(u'获取%d-pcik信息失败%s' % (pick_id, e))
error_logger.error(u'获取%s-pcik信息失败%s' % (pick_id, e))
raise
return data
......
......@@ -35,7 +35,7 @@ class TopicUpdateOrCreateView(APIView):
try:
data = self.rpc['venus/sun/topic/get'](id=id).unwrap()
except Exception as e:
error_logger.error(u'获取%d-帖子信息失败%s' %(id, e))
error_logger.error(u'获取%s-帖子信息失败%s' %(id, e))
raise
return {'data': data}
......@@ -59,7 +59,7 @@ class TopicUpdateOrCreateView(APIView):
try:
self.rpc['venus/sun/topic/edit'](id=id, data=data).unwrap()
except Exception as e:
error_logger.error(u'创建/编辑%d-帖子信息失败%s' % (id, e))
error_logger.error(u'创建/编辑%s-帖子信息失败%s' % (id, e))
raise
return {
'message': '更新成功'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment