]> source.dussan.org Git - nextcloud-server.git/commitdiff
Enhance the logging if the part file can not be renamed 5525/head
authorMorris Jobke <hey@morrisjobke.de>
Thu, 22 Jun 2017 22:48:19 +0000 (17:48 -0500)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 23 Jun 2017 21:07:21 +0000 (16:07 -0500)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
apps/dav/lib/Connector/Sabre/File.php

index 7a8bdb1da750bd8e5ace7a30f7a4c5a8fbeca9c0..ab04890d6c745faa286ec52660f5183793803474 100644 (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) {