diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2015-09-16 22:06:57 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2015-09-16 22:29:54 +0300 |
commit | b75a1b40a27ce5293930e673e531ebfa1a9cc81c (patch) | |
tree | 9a9bae074f3b0ea1a30c62c3ba95f53abde25285 /apps/files_trashbin/lib | |
parent | 47caac10f5fd547e92b2668432f76313ee2a4f1a (diff) | |
download | nextcloud-server-b75a1b40a27ce5293930e673e531ebfa1a9cc81c.tar.gz nextcloud-server-b75a1b40a27ce5293930e673e531ebfa1a9cc81c.zip |
Log deleted files
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r-- | apps/files_trashbin/lib/trashbin.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php index 784a8e45b21..3b2d4cf5929 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; } |