diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-06-22 17:48:19 -0500 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-06-22 17:50:14 -0500 |
commit | eb9aedf44b0f77c0144cd29abe7c611e2e528421 (patch) | |
tree | bc806e218300b0e4608d884eaa6e5db12a40924d /apps/dav | |
parent | 65b4e2a1db8642086d5415df6219b7c33d9399f1 (diff) | |
download | nextcloud-server-eb9aedf44b0f77c0144cd29abe7c611e2e528421.tar.gz nextcloud-server-eb9aedf44b0f77c0144cd29abe7c611e2e528421.zip |
Enhance the logging if the part file can not be renamed
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/File.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php index 7a8bdb1da75..ab04890d6c7 100644 --- a/apps/dav/lib/Connector/Sabre/File.php +++ b/apps/dav/lib/Connector/Sabre/File.php @@ -184,7 +184,7 @@ class File extends Node implements IFile { $fileExists = $storage->file_exists($internalPath); } if (!$run || $renameOkay === false || $fileExists === false) { - \OCP\Util::writeLog('webdav', 'renaming part file to final file failed', \OCP\Util::ERROR); + \OCP\Util::writeLog('webdav', 'renaming part file to final file failed ($run: ' . ( $run ? 'true' : 'false' ) . ', $renameOkay: ' . ( $renameOkay ? 'true' : 'false' ) . ', $fileExists: ' . ( $fileExists ? 'true' : 'false' ) . ')', \OCP\Util::ERROR); throw new Exception('Could not rename part file to final file'); } } catch (ForbiddenException $ex) { |