]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(federation): Log address book sync exceptions 38085/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Thu, 4 May 2023 16:21:39 +0000 (18:21 +0200)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Thu, 4 May 2023 16:21:39 +0000 (18:21 +0200)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
apps/federation/lib/SyncFederationAddressBooks.php

index 401fd19bd7516dc84376d95a6575a6288bfd0d9b..3c3c8c872c753d9f7c2edc600fe3d13e7f9190b3 100644 (file)
@@ -82,10 +82,14 @@ class SyncFederationAddressBooks {
                        } catch (\Exception $ex) {
                                if ($ex->getCode() === Http::STATUS_UNAUTHORIZED) {
                                        $this->dbHandler->setServerStatus($url, TrustedServers::STATUS_ACCESS_REVOKED);
-                                       $this->logger->error("Server sync for $url failed because of revoked access.");
+                                       $this->logger->error("Server sync for $url failed because of revoked access.", [
+                                               'exception' => $ex,
+                                       ]);
                                } else {
                                        $this->dbHandler->setServerStatus($url, TrustedServers::STATUS_FAILURE);
-                                       $this->logger->error("Server sync for $url failed.");
+                                       $this->logger->error("Server sync for $url failed.", [
+                                               'exception' => $ex,
+                                       ]);
                                }
                                $callback($url, $ex);
                        }