[Erp5-report] r16540 - /erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Sep 21 15:38:14 CEST 2007
Author: nicolas
Date: Fri Sep 21 15:38:14 2007
New Revision: 16540
URL: http://svn.erp5.org?rev=16540&view=rev
Log:
Make LOG more verbose
Modified:
erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py
Modified: erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py?rev=16540&r1=16539&r2=16540&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py (original)
+++ erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py Fri Sep 21 15:38:14 2007
@@ -1344,6 +1344,10 @@
LOG('SyncModif, no correct message:', INFO, "sending again...")
last_xml = subscriber.getLastSentMessage()
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 != '':
has_response = 1
if domain.domain_type == self.PUB: # We always reply
@@ -1527,7 +1531,7 @@
domain=domain,
content_type=domain.getSyncContentType())
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)
domain.setAuthenticated(False)
has_response = 1
@@ -1543,7 +1547,7 @@
content_type=domain.getSyncContentType())
has_response = 1
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)
return {'has_response':has_response, 'xml':xml_a}
More information about the Erp5-report
mailing list