aboutsummaryrefslogtreecommitdiffstats
path: root/apps/accessibility
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-03-05 14:38:36 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2021-03-05 14:38:36 +0100
commit900e7f99aa1ee45da675a57a508941fa649dc425 (patch)
treedb04aaf827dac6f9cd42619bc3a0ec034789b15e /apps/accessibility
parentc7c5150ddbd00efd9946d00fac673661e5e33a89 (diff)
downloadnextcloud-server-900e7f99aa1ee45da675a57a508941fa649dc425.tar.gz
nextcloud-server-900e7f99aa1ee45da675a57a508941fa649dc425.zip
AccessibilityController to LoggerInterface
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/accessibility')
-rw-r--r--apps/accessibility/lib/Controller/AccessibilityController.php20
1 files changed, 15 insertions, 5 deletions
diff --git a/apps/accessibility/lib/Controller/AccessibilityController.php b/apps/accessibility/lib/Controller/AccessibilityController.php
index d455283dbaf..2c267edfe28 100644
--- a/apps/accessibility/lib/Controller/AccessibilityController.php
+++ b/apps/accessibility/lib/Controller/AccessibilityController.php
@@ -40,9 +40,9 @@ use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataDisplayResponse;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\IConfig;
-use OCP\ILogger;
use OCP\IRequest;
use OCP\IUserSession;
+use Psr\Log\LoggerInterface;
use ScssPhp\ScssPhp\Compiler;
use ScssPhp\ScssPhp\Exception\ParserException;
use ScssPhp\ScssPhp\Formatter\Crunched;
@@ -58,7 +58,7 @@ class AccessibilityController extends Controller {
/** @var IConfig */
private $config;
- /** @var ILogger */
+ /** @var LoggerInterface */
private $logger;
/** @var ITimeFactory */
@@ -82,7 +82,7 @@ class AccessibilityController extends Controller {
public function __construct(string $appName,
IRequest $request,
IConfig $config,
- ILogger $logger,
+ LoggerInterface $logger,
ITimeFactory $timeFactory,
IUserSession $userSession,
IAppManager $appManager,
@@ -146,7 +146,12 @@ class AccessibilityController extends Controller {
'@import "css-variables.scss";'
);
} catch (ParserException $e) {
- $this->logger->error($e->getMessage(), ['app' => 'core']);
+ $this->logger->error($e->getMessage(),
+ [
+ 'app' => 'core',
+ 'exception' => $e,
+ ]
+ );
}
}
@@ -255,7 +260,12 @@ class AccessibilityController extends Controller {
$scss->compile($variables);
$this->injectedVariables = $variables;
} catch (ParserException $e) {
- $this->logger->logException($e, ['app' => 'core']);
+ $this->logger->error($e->getMessage(),
+ [
+ 'app' => 'core',
+ 'exception' => $e,
+ ]
+ );
}
return $variables;
}