Skip to content

Commit 94ad4fc

Browse files
Merge pull request #53207 from nextcloud/backport/53145/stable31
2 parents ad3f882 + 2aced4a commit 94ad4fc

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
@@ -213,7 +213,9 @@ public function put($data) {
213213
try {
214214
/** @var IWriteStreamStorage $partStorage */
215215
$count = $partStorage->writeStream($internalPartPath, $wrappedData);
216-
} catch (GenericFileException) {
216+
} catch (GenericFileException $e) {
217+
$logger = Server::get(LoggerInterface::class);
218+
$logger->error('Error while writing stream to storage: ' . $e->getMessage(), ['exception' => $e, 'app' => 'webdav']);
217219
$result = $isEOF;
218220
if (is_resource($wrappedData)) {
219221
$result = feof($wrappedData);

0 commit comments

Comments
 (0)