summaryrefslogtreecommitdiffstats
path: root/lib/private/Preview
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-04-25 15:22:28 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-04-26 10:45:52 +0200
commit38a90130ce425d531a804dff591df4a883de3154 (patch)
treed579e7442832672ab2987f9c9ecf62e79ca09a8d /lib/private/Preview
parent12c5db90322f61d4d48e1bb534bb94382d17e317 (diff)
downloadnextcloud-server-38a90130ce425d531a804dff591df4a883de3154.tar.gz
nextcloud-server-38a90130ce425d531a804dff591df4a883de3154.zip
move log constants to ILogger
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Preview')
-rw-r--r--lib/private/Preview/Bitmap.php3
-rw-r--r--lib/private/Preview/Office.php4
-rw-r--r--lib/private/Preview/SVG.php4
3 files changed, 8 insertions, 3 deletions
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;
diff --git a/lib/private/Preview/Office.php b/lib/private/Preview/Office.php
index 6403cf5dd8d..955ab249df2 100644
--- a/lib/private/Preview/Office.php
+++ b/lib/private/Preview/Office.php
@@ -25,6 +25,8 @@
*/
namespace OC\Preview;
+use OCP\ILogger;
+
abstract class Office extends Provider {
private $cmd;
@@ -60,7 +62,7 @@ abstract class Office extends Provider {
unlink($absPath);
unlink($pdfPreview);
\OC::$server->getLogger()->logException($e, [
- 'level' => \OCP\Util::ERROR,
+ 'level' => ILogger::ERROR,
'app' => 'core',
]);
return false;
diff --git a/lib/private/Preview/SVG.php b/lib/private/Preview/SVG.php
index e0abf04d931..e283175c2e2 100644
--- a/lib/private/Preview/SVG.php
+++ b/lib/private/Preview/SVG.php
@@ -24,6 +24,8 @@
*/
namespace OC\Preview;
+use OCP\ILogger;
+
class SVG extends Provider {
/**
* {@inheritDoc}
@@ -54,7 +56,7 @@ class SVG extends Provider {
$svg->setImageFormat('png32');
} catch (\Exception $e) {
\OC::$server->getLogger()->logException($e, [
- 'level' => \OCP\Util::ERROR,
+ 'level' => ILogger::ERROR,
'app' => 'core',
]);
return false;