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>
This commit is contained in:
parent
9d7f02ec47
commit
5d3051ff62
1 changed files with 3 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue