summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-09-19 16:06:40 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-09-21 11:57:21 +0200
commit0a9371f99f05786068d6f6a72b9a717ec24690a8 (patch)
tree90ae93c3e608e2bf90a1ed0a54defb053d3e86ef /apps/updatenotification
parentb6761fbc967bd165279ca20af8c05cae045267d4 (diff)
downloadnextcloud-server-0a9371f99f05786068d6f6a72b9a717ec24690a8.tar.gz
nextcloud-server-0a9371f99f05786068d6f6a72b9a717ec24690a8.zip
Migrate applications away from deprecated ILogger
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/updatenotification')
-rw-r--r--apps/updatenotification/lib/AppInfo/Application.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/updatenotification/lib/AppInfo/Application.php b/apps/updatenotification/lib/AppInfo/Application.php
index 3290b88dcf9..adc16bcb54b 100644
--- a/apps/updatenotification/lib/AppInfo/Application.php
+++ b/apps/updatenotification/lib/AppInfo/Application.php
@@ -40,10 +40,10 @@ use OCP\AppFramework\IAppContainer;
use OCP\AppFramework\QueryException;
use OCP\IConfig;
use OCP\IGroupManager;
-use OCP\ILogger;
use OCP\IUser;
use OCP\IUserSession;
use OCP\Util;
+use Psr\Log\LoggerInterface;
class Application extends App implements IBootstrap {
public function __construct() {
@@ -56,11 +56,11 @@ class Application extends App implements IBootstrap {
public function boot(IBootContext $context): void {
$context->injectFn(function (IConfig $config,
- IUserSession $userSession,
- IAppManager $appManager,
- IGroupManager $groupManager,
- IAppContainer $appContainer,
- ILogger $logger) {
+ IUserSession $userSession,
+ IAppManager $appManager,
+ IGroupManager $groupManager,
+ IAppContainer $appContainer,
+ LoggerInterface $logger) {
if ($config->getSystemValue('updatechecker', true) !== true) {
// Updater check is disabled
return;
@@ -77,7 +77,7 @@ class Application extends App implements IBootstrap {
try {
$updateChecker = $appContainer->get(UpdateChecker::class);
} catch (QueryException $e) {
- $logger->logException($e);
+ $logger->error($e->getMessage(), ['exception' => $e]);
return;
}