| @@ 190-194 (lines=5) @@ | ||
| 187 | ||
| 188 | } catch (ClientException $e) { |
|
| 189 | $status = $e->getCode(); |
|
| 190 | if ($status === Http::STATUS_FORBIDDEN) { |
|
| 191 | $this->logger->info($target . ' refused to exchange a shared secret with you.', ['app' => 'federation']); |
|
| 192 | } else { |
|
| 193 | $this->logger->info($target . ' responded with a ' . $status . ' containing: ' . $e->getMessage(), ['app' => 'federation']); |
|
| 194 | } |
|
| 195 | } catch (\Exception $e) { |
|
| 196 | $status = Http::STATUS_INTERNAL_SERVER_ERROR; |
|
| 197 | $this->logger->logException($e, ['app' => 'federation']); |
|
| @@ 190-194 (lines=5) @@ | ||
| 187 | ||
| 188 | } catch (ClientException $e) { |
|
| 189 | $status = $e->getCode(); |
|
| 190 | if ($status === Http::STATUS_FORBIDDEN) { |
|
| 191 | $this->logger->info($target . ' refused to ask for a shared secret.', ['app' => 'federation']); |
|
| 192 | } else { |
|
| 193 | $this->logger->info($target . ' responded with a ' . $status . ' containing: ' . $e->getMessage(), ['app' => 'federation']); |
|
| 194 | } |
|
| 195 | } catch (\Exception $e) { |
|
| 196 | $status = Http::STATUS_INTERNAL_SERVER_ERROR; |
|
| 197 | $this->logger->logException($e, ['app' => 'federation']); |
|