message=("%s %s %s with etag=%s did not change (304)"%(notification.datetime,data.method,data.url,data.etag))
else:
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))
self.log_xcap(notification,message)
ifmessage:
self.log_xcap(notification,message)
def_LH_XCAPDocumentsDidChange(self,notification):
settings=SIPSimpleSettings()
...
...
@@ -274,11 +278,11 @@ class LogManager(object, metaclass=Singleton):
data=notification.data
forkinlist(data.notified_etags.keys()):
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:
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']))