Browse Source

Merge pull request #7308 from nextcloud/do-not-log-InvalidSyncToken

Log InvalidSyncToken on DAV in debug level
tags/v13.0.0beta2
Morris Jobke 6 years ago
parent
commit
573551253e
No account linked to committer's email address
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php

+ 3
- 0
apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php View File

@@ -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,

Loading…
Cancel
Save