Skip to content

Commit abb0523

Browse files
icewind1991backportbot[bot]
authored andcommitted
chore: add more info to the logging around failing to move part file
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent ccc8521 commit abb0523

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,14 @@ public function put($data) {
321321
$renameOkay = $storage->moveFromStorage($partStorage, $internalPartPath, $internalPath);
322322
$fileExists = $storage->file_exists($internalPath);
323323
if ($renameOkay === false || $fileExists === false) {
324-
Server::get(LoggerInterface::class)->error('renaming part file to final file failed $renameOkay: ' . ($renameOkay ? 'true' : 'false') . ', $fileExists: ' . ($fileExists ? 'true' : 'false') . ')', ['app' => 'webdav']);
324+
Server::get(LoggerInterface::class)
325+
->error('renaming part file to final file failed $renameOkay: ' . ($renameOkay ? 'true' : 'false') . ', $fileExists: ' . ($fileExists ? 'true' : 'false') . ')', [
326+
'app' => 'webdav',
327+
'source_storage' => $partStorage->getId(),
328+
'target_storage' => $storage->getId(),
329+
'source_internal_path' => $internalPartPath,
330+
'target_internal_path' => $internalPath,
331+
]);
325332
throw new Exception($this->l10n->t('Could not rename part file to final file'));
326333
}
327334
} catch (ForbiddenException $ex) {

0 commit comments

Comments
 (0)