diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-07-27 10:39:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-27 10:39:11 +0200 |
commit | 9ef23e236264ba1208c73512f79cc9540a5bb9e1 (patch) | |
tree | 4de46491789aa0526a0a24612e0a5363fe4e2396 /lib | |
parent | 2827b0ba31a96edfde6808f41ad67892e2293d7d (diff) | |
parent | 4cc41cb4c78aa23f88a410c724bf1ee09d64a1c5 (diff) | |
download | nextcloud-server-9ef23e236264ba1208c73512f79cc9540a5bb9e1.tar.gz nextcloud-server-9ef23e236264ba1208c73512f79cc9540a5bb9e1.zip |
Merge pull request #16558 from nextcloud/enh/less_verbose_locked_logging
Do not log all locked exceptions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/Common.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php index 657a8ba611a..4e95c594cfa 100644 --- a/lib/private/Files/Storage/Common.php +++ b/lib/private/Files/Storage/Common.php @@ -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; } } |