mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #16558 from nextcloud/enh/less_verbose_locked_logging
Do not log all locked exceptions
This commit is contained in:
commit
9ef23e2362
1 changed files with 3 additions and 3 deletions
|
|
@ -715,7 +715,7 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage {
|
|||
$provider->acquireLock('files/' . md5($this->getId() . '::' . trim($path, '/')), $type);
|
||||
} catch (LockedException $e) {
|
||||
if ($logger) {
|
||||
$logger->logException($e);
|
||||
$logger->logException($e, ['level' => ILogger::INFO]);
|
||||
}
|
||||
throw $e;
|
||||
}
|
||||
|
|
@ -747,7 +747,7 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage {
|
|||
$provider->releaseLock('files/' . md5($this->getId() . '::' . trim($path, '/')), $type);
|
||||
} catch (LockedException $e) {
|
||||
if ($logger) {
|
||||
$logger->logException($e);
|
||||
$logger->logException($e, ['level' => ILogger::INFO]);
|
||||
}
|
||||
throw $e;
|
||||
}
|
||||
|
|
@ -778,7 +778,7 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage {
|
|||
try {
|
||||
$provider->changeLock('files/' . md5($this->getId() . '::' . trim($path, '/')), $type);
|
||||
} catch (LockedException $e) {
|
||||
\OC::$server->getLogger()->logException($e);
|
||||
\OC::$server->getLogger()->logException($e, ['level' => ILogger::INFO]);
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue