From 436c4f895480b73190861e98669301ebd95cdc8c Mon Sep 17 00:00:00 2001 From: Lars Knickrehm Date: Sun, 24 Jun 2018 13:41:16 +0200 Subject: Improved logging statement --- apps/files_trashbin/lib/Trashbin.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apps/files_trashbin/lib') diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php index eb1a6f704fd..b9a8a42a21c 100644 --- a/apps/files_trashbin/lib/Trashbin.php +++ b/apps/files_trashbin/lib/Trashbin.php @@ -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.', -- cgit v1.2.3