diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-11-27 16:37:11 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-11-27 16:37:11 +0100 |
commit | 88905c62930dba3b3726d5204da2db140e0de974 (patch) | |
tree | a5e9c330c5f988398779d6b1c0efb6a067a1dab3 | |
parent | cfae590ac93f8b5c9c633aafbf205f54a7400201 (diff) | |
download | nextcloud-server-88905c62930dba3b3726d5204da2db140e0de974.tar.gz nextcloud-server-88905c62930dba3b3726d5204da2db140e0de974.zip |
Log InvalidSyncToken on DAV in debug level
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
-rw-r--r-- | apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php index 5721f483832..b66cad7e8ed 100644 --- a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php +++ b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php @@ -30,6 +30,7 @@ use OCA\DAV\Connector\Sabre\Exception\PasswordLoginForbidden; use OCP\Files\StorageNotAvailableException; use OCP\ILogger; use Sabre\DAV\Exception\Forbidden; +use Sabre\DAV\Exception\InvalidSyncToken; use Sabre\DAV\Exception\NotAuthenticated; use Sabre\DAV\Exception\NotFound; use Sabre\DAV\Exception\PreconditionFailed; @@ -41,6 +42,8 @@ class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin { // If tokenauth can throw this exception (which is basically as // NotAuthenticated. So not fatal. PasswordLoginForbidden::class => true, + // basically a NotAuthenticated + InvalidSyncToken::class => true, // the sync client uses this to find out whether files exist, // so it is not always an error, log it as debug NotFound::class => true, |