diff options
author | Robin Appelman <robin@icewind.nl> | 2018-05-04 13:30:43 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-05-04 13:30:43 +0200 |
commit | 94c15efad00aa4d85083aff4bcab6fb529646372 (patch) | |
tree | a1bb36ead81f0054317840470821b4145ea63563 /lib | |
parent | 25565dd7d808dd33cc523525209ff5cfd5b9b6cd (diff) | |
download | nextcloud-server-94c15efad00aa4d85083aff4bcab6fb529646372.tar.gz nextcloud-server-94c15efad00aa4d85083aff4bcab6fb529646372.zip |
always log locking errors
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/Common.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php index 0d0f1da2594..b6c82f3a1df 100644 --- a/lib/private/Files/Storage/Common.php +++ b/lib/private/Files/Storage/Common.php @@ -776,9 +776,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; } } |