Commit 063b1d1f authored by Jérome Perrin's avatar Jérome Perrin

Fix my mistake when logging invoke errors

TypeError: LOG() got an unexpected keyword argument 'e'


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13509 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 67d60a23
...@@ -326,7 +326,8 @@ class SQLDict(RAMDict): ...@@ -326,7 +326,8 @@ class SQLDict(RAMDict):
if len(uid_list): if len(uid_list):
activity_tool.SQLDict_assignMessage(uid = uid_list, activity_tool.SQLDict_assignMessage(uid = uid_list,
processing_node = INVOKE_ERROR_STATE) processing_node = INVOKE_ERROR_STATE)
LOG('SQLDict', WARNING, 'Error in ActivityTool.invoke', e=sys.exc_info()) LOG('SQLDict', WARNING,
'Error in ActivityTool.invoke', error=sys.exc_info())
get_transaction().commit() get_transaction().commit()
return 0 return 0
......
...@@ -142,7 +142,8 @@ class SQLQueue(RAMQueue): ...@@ -142,7 +142,8 @@ class SQLQueue(RAMQueue):
# For the other exceptions, put it into an error state. # For the other exceptions, put it into an error state.
activity_tool.SQLQueue_assignMessage(uid = line.uid, activity_tool.SQLQueue_assignMessage(uid = line.uid,
processing_node = INVOKE_ERROR_STATE) processing_node = INVOKE_ERROR_STATE)
LOG('SQLQueue', WARNING, 'Error in ActivityTool.invoke', e=sys.exc_info()) LOG('SQLQueue', WARNING,
'Error in ActivityTool.invoke', error=sys.exc_info())
get_transaction().commit() get_transaction().commit()
return 0 return 0
......
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