Skip to content

Commit

Permalink
Issue #56: Change log message.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote committed Dec 3, 2024
1 parent 88594bc commit 1260936
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Cool/CollaboraDiscoveryFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ public function getDiscoveryXml(): string {
$xml = $response->getBody()->getContents();
}
catch (ClientExceptionInterface $e) {
$this->logger->error('Cannot fetch from @url.', ['@url' => $discovery_url]);
// The backtrace of a client exception is typically not very
// interesting. Just log the message.
$this->logger->error("Failed to fetch from '@url': @message.", [
'@url' => $discovery_url,
'@message' => $e->getMessage(),
]);
throw new CollaboraNotAvailableException(
'Not able to retrieve the discovery.xml file from the Collabora Online server.',
203,
Expand Down

0 comments on commit 1260936

Please sign in to comment.