Commit 8972731b authored by Nicolas Delaby's avatar Nicolas Delaby

Make LOG more verbose

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16540 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 20aad2ff
...@@ -1344,6 +1344,10 @@ class XMLSyncUtils(XMLSyncUtilsMixin): ...@@ -1344,6 +1344,10 @@ class XMLSyncUtils(XMLSyncUtilsMixin):
LOG('SyncModif, no correct message:', INFO, "sending again...") LOG('SyncModif, no correct message:', INFO, "sending again...")
last_xml = subscriber.getLastSentMessage() last_xml = subscriber.getLastSentMessage()
LOG("SyncModif last_xml :", INFO, last_xml) LOG("SyncModif last_xml :", INFO, last_xml)
string_io = StringIO()
PrettyPrint(remote_xml, stream=string_io)
remote_xml = string_io.getvalue()
LOG("SyncModif remote_xml :", INFO, remote_xml)
if last_xml != '': if last_xml != '':
has_response = 1 has_response = 1
if domain.domain_type == self.PUB: # We always reply if domain.domain_type == self.PUB: # We always reply
...@@ -1527,7 +1531,7 @@ class XMLSyncUtils(XMLSyncUtilsMixin): ...@@ -1527,7 +1531,7 @@ class XMLSyncUtils(XMLSyncUtilsMixin):
domain=domain, domain=domain,
content_type=domain.getSyncContentType()) content_type=domain.getSyncContentType())
if syncml_data == '': if syncml_data == '':
LOG('this is the end of the synchronisation session !!!', INFO, '') LOG('this is the end of the synchronisation session !!!', INFO, domain.getId())
subscriber.setAuthenticated(False) subscriber.setAuthenticated(False)
domain.setAuthenticated(False) domain.setAuthenticated(False)
has_response = 1 has_response = 1
...@@ -1543,7 +1547,7 @@ class XMLSyncUtils(XMLSyncUtilsMixin): ...@@ -1543,7 +1547,7 @@ class XMLSyncUtils(XMLSyncUtilsMixin):
content_type=domain.getSyncContentType()) content_type=domain.getSyncContentType())
has_response = 1 has_response = 1
else: else:
LOG('this is the end of the synchronisation session !!!', INFO, '') LOG('this is the end of the synchronisation session !!!', INFO, domain.getId())
domain.setAuthenticated(False) domain.setAuthenticated(False)
return {'has_response':has_response, 'xml':xml_a} return {'has_response':has_response, 'xml':xml_a}
......
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