From ade0bd58827acd3ddce7d0d6d3aa936f797816c6 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 26 Oct 2023 08:16:49 +0200 Subject: [PATCH] [TASK] Log solr response in case of Page indexing issue Logging the response eases debugging. Integrators and developers can check the response in order to retrieve the actual reported issue, a crucial info in order to fix indexing issues. --- Classes/IndexQueue/FrontendHelper/PageIndexer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Classes/IndexQueue/FrontendHelper/PageIndexer.php b/Classes/IndexQueue/FrontendHelper/PageIndexer.php index 0897abef33..686bbbafbf 100644 --- a/Classes/IndexQueue/FrontendHelper/PageIndexer.php +++ b/Classes/IndexQueue/FrontendHelper/PageIndexer.php @@ -349,6 +349,7 @@ protected function addDocumentsToSolrIndex(array $documents): bool foreach ($documentChunks as $documentChunk) { $response = $this->solrConnection->getWriteService()->addDocuments($documentChunk); if ($response->getHttpStatus() != 200) { + $this->logger->error('Solr could not index page.', [$response->getRawResponse()]); throw new \RuntimeException('Solr Request failed.', 1331834983); } }