mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Improved logging statement
This commit is contained in:
parent
e360885eb0
commit
436c4f8954
1 changed files with 1 additions and 4 deletions
|
|
@ -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.',
|
||||
|
|
|
|||
Loading…
Reference in a new issue