aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-05-27 18:56:26 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-05-30 12:46:32 +0000
commit2aced4a60716a124476d0161555bc3f2e7459cbf (patch)
tree2d75ef038d8cd0f750ef3e1846d1fc3584800a78
parent47ffc05b0e48a9da1e076ea2253362c703a5a3af (diff)
downloadnextcloud-server-backport/53145/stable31.tar.gz
nextcloud-server-backport/53145/stable31.zip
fix: log error when writing stream to dav filebackport/53145/stable31
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--apps/dav/lib/Connector/Sabre/File.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php
index 3fcb4c3294b..4c4d42f8d15 100644
--- a/apps/dav/lib/Connector/Sabre/File.php
+++ b/apps/dav/lib/Connector/Sabre/File.php
@@ -213,7 +213,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);