Merge pull request #5526 from nextcloud/trashbin-error-log

Improve logging of trash bin inconsistencies
This commit is contained in:
Roeland Jago Douma 2017-06-29 11:06:50 +02:00 committed by GitHub
commit e0ef960848
1 changed files with 1 additions and 1 deletions

View 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 !== '/' &&