Skip to content

Commit

Permalink
tmp: debug logging
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Mar 4, 2024
1 parent 0819b97 commit 0cbe485
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/dav/lib/Upload/ChunkingV2Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
use Sabre\HTTP\RequestInterface;
use Sabre\HTTP\ResponseInterface;
use Sabre\Uri;
use function OCP\Log\logger;

class ChunkingV2Plugin extends ServerPlugin {
/** @var Server */
Expand Down Expand Up @@ -344,6 +345,11 @@ private function completeChunkedWrite(string $targetAbsolutePath): void {

// If the file was not uploaded to the user storage directly we need to copy/move it
try {
logger('s3_debug')->error('Checking if we need to copy file after multipart upload', [
'uploadFilePath' => $uploadFile->getFileInfo()->getPath(),
'pathFromView' => Filesystem::getRoot() . $uploadFile->getPath(),
'targetAbsolutePath' => $targetAbsolutePath,
]);
$uploadFileAbsolutePath = $uploadFile->getFileInfo()->getPath();
if ($uploadFileAbsolutePath !== $targetAbsolutePath) {
$uploadFile = $rootFolder->get($uploadFile->getFileInfo()->getPath());
Expand Down

0 comments on commit 0cbe485

Please sign in to comment.