Commit f87ddbf6 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Disable excessive LOG calls.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3180 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f2a17666
...@@ -65,7 +65,7 @@ class SQLQueue(RAMQueue): ...@@ -65,7 +65,7 @@ class SQLQueue(RAMQueue):
def prepareDeleteMessage(self, activity_tool, m): def prepareDeleteMessage(self, activity_tool, m):
# Erase all messages in a single transaction # Erase all messages in a single transaction
LOG("prepareDeleteMessage", 0, str(m.__dict__)) #LOG("prepareDeleteMessage", 0, str(m.__dict__))
activity_tool.SQLQueue_delMessage(uid = m.uid) activity_tool.SQLQueue_delMessage(uid = m.uid)
def dequeueMessage(self, activity_tool, processing_node): def dequeueMessage(self, activity_tool, processing_node):
...@@ -244,8 +244,8 @@ class SQLQueue(RAMQueue): ...@@ -244,8 +244,8 @@ class SQLQueue(RAMQueue):
if type(value) == type(''): if type(value) == type(''):
value = [value] value = [value]
result = activity_tool.SQLQueue_validateMessageList(method_id=value, message_uid=None, path=None) result = activity_tool.SQLQueue_validateMessageList(method_id=value, message_uid=None, path=None)
LOG('SQLQueue._validate_after_method_id, method_id',0,value) #LOG('SQLQueue._validate_after_method_id, method_id',0,value)
LOG('SQLQueue._validate_after_method_id, result[0].uid_count',0,result[0].uid_count) #LOG('SQLQueue._validate_after_method_id, result[0].uid_count',0,result[0].uid_count)
if result[0].uid_count > 0: if result[0].uid_count > 0:
return INVALID_ORDER return INVALID_ORDER
return VALID return VALID
......
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