diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-10-01 21:53:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-01 21:53:55 +0200 |
commit | e714524267fbecf800de3fa3f59a87d8117cc0f7 (patch) | |
tree | f02225ac47b2ff687d4c078813cdd6544f4505a5 /apps/dav/lib/CardDAV | |
parent | 132f842f80b63ae0d782c7dbbd721836acbd29cb (diff) | |
parent | 2988efeb7fb83aa6a843647c5e2f40fcc61984d1 (diff) | |
download | nextcloud-server-e714524267fbecf800de3fa3f59a87d8117cc0f7.tar.gz nextcloud-server-e714524267fbecf800de3fa3f59a87d8117cc0f7.zip |
Merge pull request #33104 from nextcloud/enhancement/add-logging-federation
Federation - add logging, update the server status if sync fails
Diffstat (limited to 'apps/dav/lib/CardDAV')
-rw-r--r-- | apps/dav/lib/CardDAV/SyncService.php | 4 |
1 files changed, 3 insertions, 1 deletions
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 |