From 0cbe4857ff6757e959ccbf4da597f222e35186eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 4 Mar 2024 20:23:33 +0100 Subject: [PATCH] tmp: debug logging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/dav/lib/Upload/ChunkingV2Plugin.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/dav/lib/Upload/ChunkingV2Plugin.php b/apps/dav/lib/Upload/ChunkingV2Plugin.php index c66ffaa3f7d57..dc167adab1e74 100644 --- a/apps/dav/lib/Upload/ChunkingV2Plugin.php +++ b/apps/dav/lib/Upload/ChunkingV2Plugin.php @@ -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 */ @@ -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());