Update apps/dav/lib/Connector/Sabre/File.php

Signed-off-by: Kate <26026535+provokateurin@users.noreply.github.com>
pull/53208/head
Kate 2025-05-30 16:07:56 +07:00 committed by GitHub
parent ca432b8157
commit 22848f7725
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

@ -210,7 +210,7 @@ class File extends Node implements IFile {
/** @var IWriteStreamStorage $partStorage */
$count = $partStorage->writeStream($internalPartPath, $wrappedData);
} catch (GenericFileException $e) {
$logger = Server::get(LoggerInterface::class);
$logger = \OCP\Server::get(LoggerInterface::class);
$logger->error('Error while writing stream to storage: ' . $e->getMessage(), ['exception' => $e, 'app' => 'webdav']);
$result = $isEOF;
if (is_resource($wrappedData)) {