add some error logs to the trash bin app

This commit is contained in:
Björn Schießle 2013-03-18 12:08:34 +01:00
parent 67f5b00980
commit 4a1a23ce1b
2 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,7 @@ $list = json_decode($files);
$error = array();
$success = array();
$i = 0;
foreach ($list as $file) {
if ( $dirlisting=='0') {
@ -28,6 +29,7 @@ foreach ($list as $file) {
$i++;
} else {
$error[] = $filename;
OC_Log::write('trashbin','can\'t delete ' . $filename . ' permanently.', OC_Log::ERROR);
}
}

View File

@ -24,6 +24,7 @@ foreach ($list as $file) {
if ( !OCA\Files_Trashbin\Trashbin::restore($file, $filename, $timestamp) ) {
$error[] = $filename;
OC_Log::write('trashbin','can\'t restore ' . $filename, OC_Log::ERROR);
} else {
$success[$i]['filename'] = $file;
$success[$i]['timestamp'] = $timestamp;