diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-07-04 19:36:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-04 19:36:08 +0200 |
commit | 29fdffb1afbe0f3b9108b42048acbdee9faa5a93 (patch) | |
tree | 8e6a7aa361c5663dc9430f631d735da8eec4fd54 /apps/dav | |
parent | e0b01f9cb5244e07e0ebe3f467f65ac338d7d944 (diff) | |
parent | 8a0a09eb90044a2cb94fafb0449bc1c7639ff453 (diff) | |
download | nextcloud-server-29fdffb1afbe0f3b9108b42048acbdee9faa5a93.tar.gz nextcloud-server-29fdffb1afbe0f3b9108b42048acbdee9faa5a93.zip |
Merge pull request #5525 from nextcloud/stable12-5517
[stable12] Enhance the logging if the part file can not be renamed
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) { |