Improved logging statement

This commit is contained in:
Lars Knickrehm 2018-06-24 13:41:16 +02:00 committed by GitHub
parent e360885eb0
commit 436c4f8954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -794,10 +794,7 @@ class Trashbin {
$size += self::delete($filename, $user, $timestamp);
$count++;
} catch (\OCP\Files\NotPermittedException $e) {
\OC::$server->getLogger()->warning(
'Removing "' . $filename . '" from trashbin failed (OCP\\Files\\NotPermittedException).',
['app' => 'files_trashbin']
);
\OC::$server->getLogger()->logException($e, ['app' => 'files_trashbin', 'level' => \OCP\ILogger::WARN, 'message' => 'Removing "' . $filename . '" from trashbin failed.']);
}
\OC::$server->getLogger()->info(
'Remove "' . $filename . '" from trashbin because it exceeds max retention obligation term.',