Skip to content
Snippets Groups Projects
Commit a50d53c4 authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Merge pull request #2417 from owncloud/trash_more_error_logs

add some error logs to the trash bin app
parents 67f5b009 4a1a23ce
Branches
No related tags found
No related merge requests found
......@@ -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);
}
}
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment