summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-04-15 10:34:38 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-04-16 12:31:22 +0200
commit032c54273c2f88a4c35697b11d82524d585f3c84 (patch)
tree92b9324c526edc3f6e2815d42ff5a67fb3902b56 /apps
parentd0b3e8aceba231b4206677b5000216dfc2b75f33 (diff)
downloadnextcloud-server-032c54273c2f88a4c35697b11d82524d585f3c84.tar.gz
nextcloud-server-032c54273c2f88a4c35697b11d82524d585f3c84.zip
write a info message to the log if a file gets removed from the trash bin automatically
Diffstat (limited to 'apps')
-rw-r--r--apps/files_trashbin/lib/trash.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/trash.php b/apps/files_trashbin/lib/trash.php
index 9efb041bb9d..13823ecbba3 100644
--- a/apps/files_trashbin/lib/trash.php
+++ b/apps/files_trashbin/lib/trash.php
@@ -375,6 +375,7 @@ class Trashbin {
$filename = $r['id'];
if ( $r['timestamp'] < $limit ) {
$size += self::delete($filename, $timestamp);
+ \OC_Log::write('files_trashbin', 'remove "'.$filename.'" fom trash bin because it is older than '.$retention_obligation, \OC_log::INFO);
}
}
$availableSpace = $availableSpace + $size;
@@ -387,6 +388,7 @@ class Trashbin {
$i = 0;
while ( $i < $length && $availableSpace < 0 ) {
$tmp = self::delete($result[$i]['id'], $result[$i]['timestamp']);
+ \OC_Log::write('files_trashbin', 'remove "'.$result[$i]['id'].'" ('.$tmp.'B) to meet the limit of trash bin size (50% of available quota)', \OC_log::INFO);
$availableSpace += $tmp;
$size += $tmp;
$i++;