message=("%s %s %s with etag=%s did not change (304)"%(notification.datetime,data.method,data.url,data.etag))
message=("%s %s %s with etag=%s did not change (304)"%(notification.datetime,data.method,data.url,data.etag))
else:
else:
message=("%s %s %s changed to etag=%s (%d bytes)"%(notification.datetime,data.method,data.url,data.etag,data.size))
message=("%s %s %s changed to etag=%s (%d bytes)"%(notification.datetime,data.method,data.url,data.etag,data.size))
elifdata.result=='fetch':
message=("%s %s %s with etag=%s"%(notification.datetime,data.method,data.url,data.etag))
ifmessage:
self.log_xcap(notification,message)
self.log_xcap(notification,message)
def_LH_XCAPDocumentsDidChange(self,notification):
def_LH_XCAPDocumentsDidChange(self,notification):
...
@@ -274,10 +278,10 @@ class LogManager(object, metaclass=Singleton):
...
@@ -274,10 +278,10 @@ class LogManager(object, metaclass=Singleton):
data=notification.data
data=notification.data
forkinlist(data.notified_etags.keys()):
forkinlist(data.notified_etags.keys()):
ifknotindata.documents:
ifknotindata.documents:
message=("%s %s etag has changed on server to %s but is already stored locally"%(notification.datetime,data.notified_etags[k]['url'],data.notified_etags[k]['new_etag']))
pass
#message = ("%s %s etag has changed on server to %s but is already stored locally" % (notification.datetime, data.notified_etags[k]['url'], data.notified_etags[k]['new_etag']))
else:
else:
message=("%s %s etag has changed: %s -> %s"%(notification.datetime,data.notified_etags[k]['url'],data.notified_etags[k]['new_etag'],data.notified_etags[k]['previous_etag']))
message=("%s %s etag has changed: %s -> %s"%(notification.datetime,data.notified_etags[k]['url'],data.notified_etags[k]['new_etag'],data.notified_etags[k]['previous_etag']))