Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2015-09-16 22:06:57 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2015-09-16 22:29:54 +0300
commitb75a1b40a27ce5293930e673e531ebfa1a9cc81c (patch)
tree9a9bae074f3b0ea1a30c62c3ba95f53abde25285 /apps/files_trashbin
parent47caac10f5fd547e92b2668432f76313ee2a4f1a (diff)
Log deleted files
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/lib/trashbin.php4
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;
}