summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector/Sabre
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-11-02 22:06:25 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-11-04 13:55:49 +0100
commit5d3051ff621c3c0ccf39bbd7455cfd21d4eb034e (patch)
treee2e1c71e33db9c6e29338de43e981277bc1462fe /apps/dav/lib/Connector/Sabre
parent9d7f02ec4795c5da2ae41f92dc9569d13dc81e7c (diff)
downloadnextcloud-server-5d3051ff621c3c0ccf39bbd7455cfd21d4eb034e.tar.gz
nextcloud-server-5d3051ff621c3c0ccf39bbd7455cfd21d4eb034e.zip
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 <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre')
-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 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 */