diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-06-23 16:06:03 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-23 16:06:03 -0500 |
commit | 944e5601557673994ad212e1ce3eabc1b6897335 (patch) | |
tree | aec1f56a25b0f0e35aec837a62bdb1af95c9336a /apps | |
parent | 86efe9569a860911f932da6b908c283549decb2b (diff) | |
parent | eb9aedf44b0f77c0144cd29abe7c611e2e528421 (diff) | |
download | nextcloud-server-944e5601557673994ad212e1ce3eabc1b6897335.tar.gz nextcloud-server-944e5601557673994ad212e1ce3eabc1b6897335.zip |
Merge pull request #5517 from nextcloud/enhanced-failure-logging
Enhance the logging if the part file can not be renamed
Diffstat (limited to 'apps')
-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) { |