Commit c6eb5bc1 authored by Nicolas Delaby's avatar Nicolas Delaby

Display Anchors in LOG when they are not consistency

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16579 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5ddde15c
...@@ -84,16 +84,17 @@ class PublicationSynchronization(XMLSyncUtils): ...@@ -84,16 +84,17 @@ class PublicationSynchronization(XMLSyncUtils):
subscriber.resetAllSignatures() subscriber.resetAllSignatures()
# Check if the last time synchronization is the same as the client one # Check if the last time synchronization is the same as the client one
mess='\nsubscriber.getNextAnchor:\t%s\nsubscriber.getLastAnchor:\t%s\
\nlast_anchor:\t\t\t%s\nnext_anchor:\t\t\t%s' % \
(subscriber.getNextAnchor(), subscriber.getLastAnchor(), last_anchor, \
next_anchor)
if subscriber.getNextAnchor() != last_anchor: if subscriber.getNextAnchor() != last_anchor:
if last_anchor in (None, ''): if last_anchor in (None, ''):
LOG('PubSyncInit', INFO, 'anchor null') LOG('PubSyncInit', INFO, 'anchor null')
else: else:
message = "bad anchors in PubSyncInit! " + \ mess = '\nsubscriber.getNextAnchor:\t%s\nsubscriber.getLastAnchor:\t%s\
subscriber.getNextAnchor() + " and " + last_anchor \nlast_anchor:\t\t\t%s\nnext_anchor:\t\t\t%s' % \
(subscriber.getNextAnchor(),
subscriber.getLastAnchor(),
last_anchor,
next_anchor)
LOG('PubSyncInit Anchors', INFO, mess)
else: else:
subscriber.setNextAnchor(next_anchor) subscriber.setNextAnchor(next_anchor)
......
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