Skip to content
Snippets Groups Projects
Commit b75a1b40 authored by Victor Dubiniuk's avatar Victor Dubiniuk
Browse files

Log deleted files

parent 47caac10
Branches
No related tags found
No related merge requests found
...@@ -700,6 +700,10 @@ class Trashbin { ...@@ -700,6 +700,10 @@ class Trashbin {
if ($expiration->isExpired($timestamp)) { if ($expiration->isExpired($timestamp)) {
$count++; $count++;
$size += self::delete($filename, $user, $timestamp); $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 { } else {
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment