diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-31 15:34:57 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-05-02 10:52:43 +0200 |
commit | e2531f8503dea904dd1cb389ca017ce7bda5ccfc (patch) | |
tree | 683918ba234959dd76e771aaae2af434b21d09fe /apps/dav/lib/HookManager.php | |
parent | 49b650c4a46c76121d74c6c37c0dbfa0d8f53dbe (diff) | |
download | nextcloud-server-e2531f8503dea904dd1cb389ca017ce7bda5ccfc.tar.gz nextcloud-server-e2531f8503dea904dd1cb389ca017ce7bda5ccfc.zip |
Migrate dav application from ILogger to LoggerInterface
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/dav/lib/HookManager.php')
-rw-r--r-- | apps/dav/lib/HookManager.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/dav/lib/HookManager.php b/apps/dav/lib/HookManager.php index 1287104fd10..fcb6839a1f9 100644 --- a/apps/dav/lib/HookManager.php +++ b/apps/dav/lib/HookManager.php @@ -176,8 +176,8 @@ class HookManager { '{http://apple.com/ns/ical/}calendar-color' => $this->themingDefaults->getColorPrimary(), 'components' => 'VEVENT' ]); - } catch (\Exception $ex) { - \OC::$server->getLogger()->logException($ex); + } catch (\Exception $e) { + \OC::$server->get(LoggerInterface::class)->error($e->getMessage(), ['exception' => $e]); } } if ($this->cardDav->getAddressBooksForUserCount($principal) === 0) { @@ -185,8 +185,8 @@ class HookManager { $this->cardDav->createAddressBook($principal, CardDavBackend::PERSONAL_ADDRESSBOOK_URI, [ '{DAV:}displayname' => CardDavBackend::PERSONAL_ADDRESSBOOK_NAME, ]); - } catch (\Exception $ex) { - \OC::$server->getLogger()->logException($ex); + } catch (\Exception $e) { + \OC::$server->get(LoggerInterface::class)->error($e->getMessage(), ['exception' => $e]); } } } |