From 2988efeb7fb83aa6a843647c5e2f40fcc61984d1 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Mon, 4 Jul 2022 15:43:04 +0200 Subject: Add logging to federation Signed-off-by: Anna Larch --- apps/dav/lib/CardDAV/SyncService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/dav/lib/CardDAV') diff --git a/apps/dav/lib/CardDAV/SyncService.php b/apps/dav/lib/CardDAV/SyncService.php index 5094b7f3f5c..da798c5768e 100644 --- a/apps/dav/lib/CardDAV/SyncService.php +++ b/apps/dav/lib/CardDAV/SyncService.php @@ -73,9 +73,11 @@ class SyncService { if ($ex->getCode() === Http::STATUS_UNAUTHORIZED) { // remote server revoked access to the address book, remove it $this->backend->deleteAddressBook($addressBookId); - $this->logger->info('Authorization failed, remove address book: ' . $url, ['app' => 'dav']); + $this->logger->error('Authorization failed, remove address book: ' . $url, ['app' => 'dav']); throw $ex; } + $this->logger->error('Client exception:', ['app' => 'dav', 'exception' => $ex]); + throw $ex; } // 3. apply changes -- cgit v1.2.3