diff options
author | Lars Knickrehm <mail@lars-sh.de> | 2018-06-24 13:41:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-24 13:41:16 +0200 |
commit | 436c4f895480b73190861e98669301ebd95cdc8c (patch) | |
tree | ca9d4f1238225d3e876bec9a64caae510e4b0949 /apps/files_trashbin/lib | |
parent | e360885eb0562821c7dc69e988d4aa86418e68cf (diff) | |
download | nextcloud-server-436c4f895480b73190861e98669301ebd95cdc8c.tar.gz nextcloud-server-436c4f895480b73190861e98669301ebd95cdc8c.zip |
Improved logging statement
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r-- | apps/files_trashbin/lib/Trashbin.php | 5 |
1 files changed, 1 insertions, 4 deletions
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.', |