Skip to content

Commit 635b9f0

Browse files
committed
TASK: Add dimensions information to a log message
If a node cannot be found during indexing, output the "requested" dimensions to the log message, for less confusing log messages.
1 parent 022a937 commit 635b9f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Indexer/NodeIndexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function indexNode(NodeInterface $node, $targetWorkspaceName = null)
240240
$this->removeNode($node, $context->getWorkspaceName());
241241
$this->logger->log(sprintf('NodeIndexer (%s): Removed node with identifier %s, no longer in workspace %s', $documentIdentifier, $node->getIdentifier(), $context->getWorkspaceName()), LOG_DEBUG, null, 'ElasticSearch (CR)');
242242
} else {
243-
$this->logger->log(sprintf('NodeIndexer (%s): Could not index node with identifier %s, not found in workspace %s', $documentIdentifier, $node->getIdentifier(), $context->getWorkspaceName()), LOG_DEBUG, null, 'ElasticSearch (CR)');
243+
$this->logger->log(sprintf('NodeIndexer (%s): Could not index node with identifier %s, not found in workspace %s with dimensions %s', $documentIdentifier, $node->getIdentifier(), $context->getWorkspaceName(), json_encode($context->getDimensions())), LOG_DEBUG, null, 'ElasticSearch (CR)');
244244
}
245245
}
246246
};

0 commit comments

Comments
 (0)