do not log problematic sync token twice
This commit is contained in:
@@ -213,8 +213,8 @@ def xml_report(base_prefix: str, path: str, xml_request: Optional[ET.Element],
|
|||||||
sync_token, names = collection.sync(old_sync_token)
|
sync_token, names = collection.sync(old_sync_token)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
# Invalid sync token
|
# Invalid sync token
|
||||||
logger.warning("Client provided invalid sync token %r: %s",
|
logger.warning("Client provided invalid sync token: %s",
|
||||||
old_sync_token, e, exc_info=True)
|
e, exc_info=True)
|
||||||
# client.CONFLICT doesn't work with some clients (e.g. InfCloud)
|
# client.CONFLICT doesn't work with some clients (e.g. InfCloud)
|
||||||
return (client.FORBIDDEN,
|
return (client.FORBIDDEN,
|
||||||
xmlutils.webdav_error("D:valid-sync-token"))
|
xmlutils.webdav_error("D:valid-sync-token"))
|
||||||
|
|||||||
Reference in New Issue
Block a user