diff options
author | Robin Appelman <robin@icewind.nl> | 2020-06-30 18:10:42 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-06-30 18:10:42 +0200 |
commit | da2d4250446b6e2f921bd3de0420738881792bd3 (patch) | |
tree | 876c3a427de61033593de9e93a606654172fae79 /lib/private/Files/Storage/Common.php | |
parent | 26aa83890667202154ef086e27e769919fb56a47 (diff) | |
download | nextcloud-server-da2d4250446b6e2f921bd3de0420738881792bd3.tar.gz nextcloud-server-da2d4250446b6e2f921bd3de0420738881792bd3.zip |
add proper paths to locking exceptions
while some code paths do wrap the "raw" locking exception into one with a proper path, not all of them do
by adding the proper path to the original exception we ensure that we always have the usefull information in out logs
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Storage/Common.php')
-rw-r--r-- | lib/private/Files/Storage/Common.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php index 001b16cb3b4..6c57405619a 100644 --- a/lib/private/Files/Storage/Common.php +++ b/lib/private/Files/Storage/Common.php @@ -747,7 +747,7 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage { ); } try { - $provider->acquireLock('files/' . md5($this->getId() . '::' . trim($path, '/')), $type); + $provider->acquireLock('files/' . md5($this->getId() . '::' . trim($path, '/')), $type, $this->getId() . '::' . $path); } catch (LockedException $e) { if ($logger) { $logger->logException($e, ['level' => ILogger::INFO]); |