Skip to content

Commit

Permalink
Add check for indexing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adunn49 committed Oct 14, 2024
1 parent b85c3b0 commit 37590b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Service/Indexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@ public function processNode(): void
}
}

if ($this->getIndexService()->hasIndexingErrors) {
// Check if we can determine errors were encountered during indexing
// and log warning if so.
if (
property_exists($this->getIndexService(), 'hasIndexingErrors')
&& $this->getIndexService()->hasIndexingErrors
) {
Injector::inst()->get(LoggerInterface::class)->warning(
'[SEARCH SERVICE] Indexed with errors'
);
Expand Down

0 comments on commit 37590b8

Please sign in to comment.