Skip to content

Commit a680679

Browse files
committed
TASK: Remove Environment info from the log message
1 parent 94d0fc6 commit a680679

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

Classes/Indexer/NodeIndexer.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public function getIndex(): Index
226226
public function indexNode(NodeInterface $node, $targetWorkspaceName = null): void
227227
{
228228
if ($this->nodeTypeIndexingConfiguration->isIndexable($node->getNodeType()) === false) {
229-
$this->logger->debug(sprintf('NodeIndexer - Node "%s" (%s) skipped, Node Type is not allowed in the index.', $node->getContextPath(), $node->getNodeType()), LogEnvironment::fromMethodName(__METHOD__));
229+
$this->logger->debug(sprintf('Node "%s" (%s) skipped, Node Type is not allowed in the index.', $node->getContextPath(), $node->getNodeType()), LogEnvironment::fromMethodName(__METHOD__));
230230
return;
231231
}
232232

@@ -257,13 +257,13 @@ public function indexNode(NodeInterface $node, $targetWorkspaceName = null): voi
257257

258258
if ($this->bulkProcessing === false) {
259259
// Remove document with the same contextPathHash but different NodeType, required after NodeType change
260-
$this->logger->debug(sprintf('NodeIndexer (%s): Search and remove duplicate document for node %s (%s) if needed.', $documentIdentifier, $contextPath, $node->getIdentifier()), LogEnvironment::fromMethodName(__METHOD__));
260+
$this->logger->debug(sprintf('Search and remove duplicate document for node %s (%s) if needed.', $contextPath, $node->getIdentifier()), LogEnvironment::fromMethodName(__METHOD__));
261261
$this->documentDriver->deleteDuplicateDocumentNotMatchingType($this->getIndex(), $documentIdentifier, $node->getNodeType());
262262
}
263263

264264
$fulltextIndexOfNode = [];
265265
$nodePropertiesToBeStoredInIndex = $this->extractPropertiesAndFulltext($node, $fulltextIndexOfNode, function ($propertyName) use ($documentIdentifier, $node) {
266-
$this->logger->debug(sprintf('NodeIndexer (%s) - Property "%s" not indexed because no configuration found, node type %s.', $documentIdentifier, $propertyName, $node->getNodeType()->getName()), LogEnvironment::fromMethodName(__METHOD__));
266+
$this->logger->debug(sprintf('Property "%s" not indexed because no configuration found, node type %s.', $propertyName, $node->getNodeType()->getName()), LogEnvironment::fromMethodName(__METHOD__));
267267
});
268268

269269
$document = new ElasticSearchDocument($mappingType,
@@ -293,9 +293,9 @@ public function indexNode(NodeInterface $node, $targetWorkspaceName = null): voi
293293
$documentIdentifier = $this->calculateDocumentIdentifier($node, $targetWorkspaceName);
294294
if ($node->isRemoved()) {
295295
$this->removeNode($node, $context->getWorkspaceName());
296-
$this->logger->debug(sprintf('NodeIndexer (%s): Removed node with identifier %s, no longer in workspace %s', $documentIdentifier, $node->getIdentifier(), $context->getWorkspaceName()), LogEnvironment::fromMethodName(__METHOD__));
296+
$this->logger->debug(sprintf('Removed node with identifier %s, no longer in workspace %s', $node->getIdentifier(), $context->getWorkspaceName()), LogEnvironment::fromMethodName(__METHOD__));
297297
} else {
298-
$this->logger->debug(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())), LogEnvironment::fromMethodName(__METHOD__));
298+
$this->logger->debug(sprintf('Could not index node with identifier %s, not found in workspace %s with dimensions %s', $node->getIdentifier(), $context->getWorkspaceName(), json_encode($context->getDimensions())), LogEnvironment::fromMethodName(__METHOD__));
299299
}
300300
}
301301
};
@@ -434,7 +434,6 @@ protected function bulkRequestLength(): int
434434
* @return void
435435
* @throws Exception
436436
* @throws \Flowpack\ElasticSearch\Exception
437-
* @throws FilesException
438437
* @throws Exception\ConfigurationException
439438
*/
440439
public function flush(): void

0 commit comments

Comments
 (0)