Browse Source

Enhance the logging if the part file can not be renamed

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
tags/v13.0.0beta1
Morris Jobke 7 years ago
parent
commit
eb9aedf44b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/dav/lib/Connector/Sabre/File.php

+ 1
- 1
apps/dav/lib/Connector/Sabre/File.php View File

@@ -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) {

Loading…
Cancel
Save