PasswordLoginForbidden is not a FATAL exception

It is just a 'Sabre\DAV\Exception\NotAuthenticated' exception
with some special meaning.

So just log it as DEBUG and not as FATAL.
This commit is contained in:
Roeland Jago Douma 2016-07-14 22:53:12 +02:00
parent 813b58ab94
commit 059b7435ab
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@ use Sabre\HTTP\Response;
class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin {
protected $nonFatalExceptions = array(
'Sabre\DAV\Exception\NotAuthenticated' => true,
// If tokenauth can throw this exception (which is basically as
// NotAuthenticated. So not fatal.
'OCA\DAV\Connector\Sabre\Exception\PasswordLoginForbidden' => true,
// the sync client uses this to find out whether files exist,
// so it is not always an error, log it as debug
'Sabre\DAV\Exception\NotFound' => true,