Skip to content

Commit b9b8db6

Browse files
icewind1991AndyScherzinger
authored andcommitted
fix: log error when writing stream to dav file
Signed-off-by: Robin Appelman <[email protected]>
1 parent 14cc8d3 commit b9b8db6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ public function put($data) {
216216
try {
217217
/** @var IWriteStreamStorage $partStorage */
218218
$count = $partStorage->writeStream($internalPartPath, $wrappedData);
219-
} catch (GenericFileException) {
219+
} catch (GenericFileException $e) {
220+
$logger = Server::get(LoggerInterface::class);
221+
$logger->error('Error while writing stream to storage: ' . $e->getMessage(), ['exception' => $e, 'app' => 'webdav']);
220222
$result = $isEOF;
221223
if (is_resource($wrappedData)) {
222224
$result = feof($wrappedData);

0 commit comments

Comments
 (0)