summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-11-27 17:27:41 +0100
committerGitHub <noreply@github.com>2017-11-27 17:27:41 +0100
commit573551253ed800d9e75d784a96f71d4d327bd95e (patch)
tree137e6b0fc8a07de178902bbaeeafe813c01e4ede /apps/dav/lib
parent5cc8ea8feb955980d83c0ac1d9aa2bbede62206e (diff)
parent88905c62930dba3b3726d5204da2db140e0de974 (diff)
downloadnextcloud-server-573551253ed800d9e75d784a96f71d4d327bd95e.tar.gz
nextcloud-server-573551253ed800d9e75d784a96f71d4d327bd95e.zip
Merge pull request #7308 from nextcloud/do-not-log-InvalidSyncToken
Log InvalidSyncToken on DAV in debug level
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php3
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 7be08c7e806..68c9a1b415f 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\NotImplemented;
@@ -42,6 +43,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,