From b75a1b40a27ce5293930e673e531ebfa1a9cc81c Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk <victor.dubiniuk@gmail.com> Date: Wed, 16 Sep 2015 22:06:57 +0300 Subject: [PATCH] Log deleted files --- apps/files_trashbin/lib/trashbin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php index 784a8e45b2..3b2d4cf592 100644 --- a/apps/files_trashbin/lib/trashbin.php +++ b/apps/files_trashbin/lib/trashbin.php @@ -700,6 +700,10 @@ class Trashbin { if ($expiration->isExpired($timestamp)) { $count++; $size += self::delete($filename, $user, $timestamp); + \OC::$server->getLogger()->info( + 'Remove "' . $filename . '" from trashbin because it exceeds max retention obligation term.', + ['app' => 'files_trashbin'] + ); } else { break; } -- GitLab