From: Morris Jobke Date: Fri, 23 Jun 2017 21:09:00 +0000 (-0500) Subject: Improve logging of trash bin inconsistencies X-Git-Tag: v12.0.1RC1~37^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2459eb80a72c8552a0336547fc0e665245aa0b81;p=nextcloud-server.git Improve logging of trash bin inconsistencies Signed-off-by: Morris Jobke --- diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php index 48dc3fbd055..75035b8bab6 100644 --- a/apps/files_trashbin/lib/Trashbin.php +++ b/apps/files_trashbin/lib/Trashbin.php @@ -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 !== '/' &&