diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-11-08 10:42:07 +0100 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-11-08 10:56:30 +0100 |
commit | 954b6c68a062897986f16d0faa2e4f7f832149b7 (patch) | |
tree | 697a4d15b82cf56e3da86b28384b63514479f750 /lib | |
parent | 0f96a2ccb98ecb47ea3c92fe33423fb1ad997f80 (diff) | |
download | nextcloud-server-954b6c68a062897986f16d0faa2e4f7f832149b7.tar.gz nextcloud-server-954b6c68a062897986f16d0faa2e4f7f832149b7.zip |
chore: use `$this->logger` and prevent Server::getfix/undefined-response
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/DAV.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php index 3d3937b44b7..10670d6331a 100644 --- a/lib/private/Files/Storage/DAV.php +++ b/lib/private/Files/Storage/DAV.php @@ -346,7 +346,7 @@ class DAV extends Common { if ($response->getStatusCode() === Http::STATUS_LOCKED) { throw new \OCP\Lock\LockedException($path); } else { - Server::get(LoggerInterface::class)->error('Guzzle get returned status code ' . $response->getStatusCode(), ['app' => 'webdav client']); + $this->logger->error('Guzzle get returned status code ' . $response->getStatusCode(), ['app' => 'webdav client']); } } @@ -773,7 +773,7 @@ class DAV extends Common { * @throws ForbiddenException if the action is not allowed */ protected function convertException(Exception $e, string $path = ''): void { - Server::get(LoggerInterface::class)->debug($e->getMessage(), ['app' => 'files_external', 'exception' => $e]); + $this->logger->debug($e->getMessage(), ['app' => 'files_external', 'exception' => $e]); if ($e instanceof ClientHttpException) { if ($e->getHttpStatus() === Http::STATUS_LOCKED) { throw new \OCP\Lock\LockedException($path); |