From bc1a17a9e2ac415ce4eb63a49804699a023b1892 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 4 May 2018 13:30:43 +0200 Subject: [PATCH] always log locking errors Signed-off-by: Robin Appelman --- lib/private/Files/Storage/Common.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php index 56d683ffa2..eb04a0077a 100644 --- a/lib/private/Files/Storage/Common.php +++ b/lib/private/Files/Storage/Common.php @@ -772,9 +772,7 @@ abstract class Common implements Storage, ILockingStorage { try { $provider->changeLock('files/' . md5($this->getId() . '::' . trim($path, '/')), $type); } catch (LockedException $e) { - if ($logger) { - $logger->logException($e); - } + \OC::$server->getLogger()->logException($e); throw $e; } }