From aaf060893c2f1d564d94038994000a0a8e549324 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 2 Nov 2018 22:06:25 +0100 Subject: [PATCH] Do not log FileLock as exception There is no reason to log FileLock errors as exceptions to the log file. Locks happen for very legit reasons and it is actually a sign of the code doing its job. Signed-off-by: Roeland Jago Douma --- apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php index ecfd0e5692d..d134a0efaff 100644 --- a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php +++ b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php @@ -26,6 +26,7 @@ namespace OCA\DAV\Connector\Sabre; +use OCA\DAV\Connector\Sabre\Exception\FileLocked; use OCA\DAV\Connector\Sabre\Exception\PasswordLoginForbidden; use OCP\Files\StorageNotAvailableException; use OCP\ILogger; @@ -69,6 +70,8 @@ class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin { // happens when a certain method is not allowed to be called // for example creating a folder that already exists MethodNotAllowed::class => true, + // A locked file is perfectly valid and can happen in various cases + FileLocked::class => true, ]; /** @var string */ -- 2.39.5