From 38a90130ce425d531a804dff591df4a883de3154 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 25 Apr 2018 15:22:28 +0200 Subject: move log constants to ILogger Signed-off-by: Arthur Schiwon --- lib/private/Preview/Bitmap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/private/Preview/Bitmap.php') diff --git a/lib/private/Preview/Bitmap.php b/lib/private/Preview/Bitmap.php index ff6093fcf81..89b56bfc9e8 100644 --- a/lib/private/Preview/Bitmap.php +++ b/lib/private/Preview/Bitmap.php @@ -26,6 +26,7 @@ namespace OC\Preview; use Imagick; +use OCP\ILogger; /** * Creates a PNG preview using ImageMagick via the PECL extension @@ -50,7 +51,7 @@ abstract class Bitmap extends Provider { } catch (\Exception $e) { \OC::$server->getLogger()->logException($e, [ 'message' => 'Imagick says:', - 'level' => \OCP\Util::ERROR, + 'level' => ILogger::ERROR, 'app' => 'core', ]); return false; -- cgit v1.2.3