mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 03:32:00 -04:00
Merge pull request #53145 from nextcloud/dav-file-write-log
fix: log error when writing stream to dav file
This commit is contained in:
commit
35930a4331
1 changed files with 3 additions and 1 deletions
|
|
@ -216,7 +216,9 @@ class File extends Node implements IFile {
|
|||
try {
|
||||
/** @var IWriteStreamStorage $partStorage */
|
||||
$count = $partStorage->writeStream($internalPartPath, $wrappedData);
|
||||
} catch (GenericFileException) {
|
||||
} catch (GenericFileException $e) {
|
||||
$logger = Server::get(LoggerInterface::class);
|
||||
$logger->error('Error while writing stream to storage: ' . $e->getMessage(), ['exception' => $e, 'app' => 'webdav']);
|
||||
$result = $isEOF;
|
||||
if (is_resource($wrappedData)) {
|
||||
$result = feof($wrappedData);
|
||||
|
|
|
|||
Loading…
Reference in a new issue