diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-06-22 17:48:19 -0500 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-06-23 16:07:21 -0500 |
commit | 8a0a09eb90044a2cb94fafb0449bc1c7639ff453 (patch) | |
tree | d518117a8f3baf05d901bb63b1751dc9f6c01f0b | |
parent | 11cb6991f2e73e96f65f05e6be3256d176d62cae (diff) | |
download | nextcloud-server-8a0a09eb90044a2cb94fafb0449bc1c7639ff453.tar.gz nextcloud-server-8a0a09eb90044a2cb94fafb0449bc1c7639ff453.zip |
Enhance the logging if the part file can not be renamed
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
-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) { |