Skip to content

Commit 92bab16

Browse files
committed
TASK: Use context path in two IndexerDriver log messages
This slightly improves usefulness of the logs when debugging.
1 parent b45c3c8 commit 92bab16

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Classes/Driver/Version2/IndexerDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function fulltext(NodeInterface $node, array $fulltextIndexOfNode, $targe
8484
$closestFulltextNode = $closestFulltextNode->getParent();
8585
if ($closestFulltextNode === null) {
8686
// root of hierarchy, no fulltext root found anymore, abort silently...
87-
$this->logger->log(sprintf('NodeIndexer: No fulltext root found for node %s (%s)', $node->getPath(), $node->getIdentifier()), LOG_WARNING, null, 'ElasticSearch (CR)');
87+
$this->logger->log(sprintf('NodeIndexer: No fulltext root found for node %s (%s)', $node->getContextPath(), $node->getIdentifier()), LOG_WARNING, null, 'ElasticSearch (CR)');
8888

8989
return null;
9090
}
@@ -98,7 +98,7 @@ public function fulltext(NodeInterface $node, array $fulltextIndexOfNode, $targe
9898

9999
if ($closestFulltextNode->isRemoved()) {
100100
// fulltext root is removed, abort silently...
101-
$this->logger->log(sprintf('NodeIndexer (%s): Fulltext root found for %s (%s) not updated, it is removed', $closestFulltextNodeDocumentIdentifier, $node->getPath(), $node->getIdentifier()), LOG_DEBUG, null, 'ElasticSearch (CR)');
101+
$this->logger->log(sprintf('NodeIndexer (%s): Fulltext root found for %s (%s) not updated, it is removed', $closestFulltextNodeDocumentIdentifier, $node->getContextPath(), $node->getIdentifier()), LOG_DEBUG, null, 'ElasticSearch (CR)');
102102

103103
return null;
104104
}

0 commit comments

Comments
 (0)