diff --git a/Suggest/SolrSuggestService.php b/Suggest/SolrSuggestService.php index a9cefc47..f76f40a1 100644 --- a/Suggest/SolrSuggestService.php +++ b/Suggest/SolrSuggestService.php @@ -64,7 +64,10 @@ public function fetchSuggestions(SimpleQueryInterface $query) try { $resultSet = $this->solarium->suggester($suggestQuery); } catch (SolariumException $e) { - $this->logger->critical('A suggest query did not complete successfully. Have you enabled the suggest Solr component?'); + $this->logger->critical( + 'A suggest query did not complete successfully. Have you enabled the suggest Solr component?', + ['message' => $e->getMessage()] + ); return new EmptySuggestResult(); } diff --git a/Terms/SolrPrefixTermsService.php b/Terms/SolrPrefixTermsService.php index 2db7ca5f..1d54b1cc 100644 --- a/Terms/SolrPrefixTermsService.php +++ b/Terms/SolrPrefixTermsService.php @@ -33,7 +33,8 @@ public function fetchTerms(SimpleQueryInterface $query) $resultSet = $this->solarium->terms($suggestQuery); } catch (SolariumException $e) { $this->logger->critical( - 'A suggest query did not complete successfully. Have you enabled the terms Solr component?' + 'A suggest query did not complete successfully. Have you enabled the terms Solr component?', + ['message' => $e->getMessage()] ); return new EmptyTermsResult(); diff --git a/Terms/SolrRegexTermsService.php b/Terms/SolrRegexTermsService.php index 8000640f..259c5348 100644 --- a/Terms/SolrRegexTermsService.php +++ b/Terms/SolrRegexTermsService.php @@ -33,7 +33,8 @@ public function fetchTerms(SimpleQueryInterface $query) $resultSet = $this->solarium->terms($suggestQuery); } catch (SolariumException $e) { $this->logger->critical( - 'A suggest query did not complete successfully. Have you enabled the terms Solr component?' + 'A suggest query did not complete successfully. Have you enabled the terms Solr component?', + ['message' => $e->getMessage()] ); return new EmptyTermsResult();