Skip to content

Commit

Permalink
Merged branch '2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Feb 20, 2020
2 parents 957e693 + c409744 commit 1d9e300
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Indexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use EzSystems\EzPlatformSolrSearchEngine\Handler as SolrSearchHandler;
use eZ\Publish\SPI\Persistence\Handler as PersistenceHandler;
use Psr\Log\LoggerInterface;
use Exception;

class Indexer extends IncrementalIndexer
{
Expand Down Expand Up @@ -56,6 +57,12 @@ public function updateSearchIndex(array $contentIds, $commit)
}
} catch (NotFoundException $e) {
$this->searchHandler->deleteContent($contentId);
} catch (Exception $e) {
$context = [
'contentId' => $contentId,
'error' => $e->getMessage(),
];
$this->logger->error('Unable to index the content', $context);
}
}

Expand Down

0 comments on commit 1d9e300

Please sign in to comment.