Sfoglia il codice sorgente

fix(federation): Log address book sync exceptions

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
tags/v27.0.0beta2
Christoph Wurst 1 anno fa
parent
commit
48b03b6c20
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. 6
    2
      apps/federation/lib/SyncFederationAddressBooks.php

+ 6
- 2
apps/federation/lib/SyncFederationAddressBooks.php Vedi 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);
}

Loading…
Annulla
Salva