]> source.dussan.org Git - nextcloud-server.git/commitdiff
Improve logging of trash bin inconsistencies 5601/head
authorMorris Jobke <hey@morrisjobke.de>
Fri, 23 Jun 2017 21:09:00 +0000 (16:09 -0500)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 4 Jul 2017 09:14:59 +0000 (11:14 +0200)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
apps/files_trashbin/lib/Trashbin.php

index 48dc3fbd05535ed28658380caf0361efa734aebc..75035b8bab65b28c24db080633b7a1cd7a5928c1 100644 (file)
@@ -386,7 +386,7 @@ class Trashbin {
                if ($timestamp) {
                        $location = self::getLocation($user, $filename, $timestamp);
                        if ($location === false) {
-                               \OCP\Util::writeLog('files_trashbin', 'trash bin database inconsistent!', \OCP\Util::ERROR);
+                               \OCP\Util::writeLog('files_trashbin', 'trash bin database inconsistent! ($user: ' . $user . ' $filename: ' . $filename . ', $timestamp: ' . $timestamp . ')', \OCP\Util::ERROR);
                        } else {
                                // if location no longer exists, restore file in the root directory
                                if ($location !== '/' &&