summaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/SVG.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Preview/SVG.php')
-rw-r--r--lib/private/Preview/SVG.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Preview/SVG.php b/lib/private/Preview/SVG.php
index 690a6b50ffe..a4ce4899c43 100644
--- a/lib/private/Preview/SVG.php
+++ b/lib/private/Preview/SVG.php
@@ -29,7 +29,7 @@ namespace OC\Preview;
use OCP\Files\File;
use OCP\IImage;
-use OCP\ILogger;
+use Psr\Log\LoggerInterface;
class SVG extends ProviderV2 {
/**
@@ -60,8 +60,8 @@ class SVG extends ProviderV2 {
$svg->readImageBlob($content);
$svg->setImageFormat('png32');
} catch (\Exception $e) {
- \OC::$server->getLogger()->logException($e, [
- 'level' => ILogger::ERROR,
+ \OC::$server->get(LoggerInterface::class)->error($e->getMessage(), [
+ 'exception' => $e,
'app' => 'core',
]);
return null;