Merge pull request #20503 from nextcloud/fix/noid/dav-catch-throwable

DAV's exception logger should deal with any Throwable
This commit is contained in:
blizzz 2020-04-15 21:48:35 +02:00 committed by GitHub
commit 48a8f0a464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin {
* Log exception
*
*/
public function logException(\Exception $ex) {
public function logException(\Throwable $ex) {
$exceptionClass = get_class($ex);
$level = ILogger::FATAL;
if (isset($this->nonFatalExceptions[$exceptionClass]) ||