diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php index 784a8e45b2134372658ac536a4fc6784288eb9f9..3b2d4cf592921a5b47f360fc04861b2673f5c073 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; }