Skip to content

Commit be43718

Browse files
committed
TASK: Log query errors to the system log
1 parent 9e8c63e commit be43718

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Classes/Eel/ElasticSearchQueryBuilder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,8 @@ public function fetch(): array
596596
$this->result['nodes'] = $this->convertHitsToNodes($searchResult->getHits());
597597
}
598598
} catch (ApiException $exception) {
599-
$this->throwableStorage->logThrowable($exception);
599+
$message = $this->throwableStorage->logThrowable($exception);
600+
$this->logger->error(sprintf('Request failed with %s', $message), LogEnvironment::fromMethodName(__METHOD__));
600601
$this->result['nodes'] = [];
601602
}
602603

0 commit comments

Comments
 (0)