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.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Preview/SVG.php b/lib/private/Preview/SVG.php
index 0695c251c8b..e0abf04d931 100644
--- a/lib/private/Preview/SVG.php
+++ b/lib/private/Preview/SVG.php
@@ -53,7 +53,10 @@ class SVG extends Provider {
$svg->readImageBlob($content);
$svg->setImageFormat('png32');
} catch (\Exception $e) {
- \OCP\Util::writeLog('core', $e->getMessage(), \OCP\Util::ERROR);
+ \OC::$server->getLogger()->logException($e, [
+ 'level' => \OCP\Util::ERROR,
+ 'app' => 'core',
+ ]);
return false;
}