You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$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)');
270
270
} else {
271
-
$this->logger->log(sprintf('NodeIndexer (%s): Could not add / update node with identifier %s, not found in workspace %s', $documentIdentifier, $node->getIdentifier(), $context->getWorkspaceName()), LOG_DEBUG, null, 'ElasticSearch (CR)');
271
+
$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)');
272
272
}
273
273
}
274
274
};
@@ -318,7 +318,7 @@ protected function updateFulltext(NodeInterface $node, array $fulltextIndexOfNod
// root of hierarchy, no fulltext root found anymore, abort silently...
321
-
$this->logger->log('NodeIndexer: No fulltext root found for ' . $node->getPath(), LOG_WARNING);
321
+
$this->logger->log(sprintf('NodeIndexer: No fulltext root found for node %s (%)', $node->getPath(), $node->getIdentifier()), LOG_WARNING, null, 'ElasticSearch (CR)');
322
322
323
323
return;
324
324
}
@@ -332,7 +332,7 @@ protected function updateFulltext(NodeInterface $node, array $fulltextIndexOfNod
332
332
333
333
if ($closestFulltextNode->isRemoved()) {
334
334
// fulltext root is removed, abort silently...
335
-
$this->logger->log(sprintf('NodeIndexer (%s): Fulltext root found for %s (%s) not updated, it is removed', $closestFulltextNodeDocumentIdentifier, $node->getPath(), $node->getIdentifier()), LOG_DEBUG);
335
+
$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)');
336
336
return;
337
337
}
338
338
@@ -393,7 +393,7 @@ protected function updateFulltext(NodeInterface $node, array $fulltextIndexOfNod
393
393
]
394
394
];
395
395
396
-
$this->logger->log(sprintf('NodeIndexer (%s): Updated fulltext index for %s (%s)', $closestFulltextNodeDocumentIdentifier, $closestFulltextNodeContextPath, $closestFulltextNode->getIdentifier()), LOG_WARNING);
396
+
$this->logger->log(sprintf('NodeIndexer (%s): Updated fulltext index for %s (%s)', $closestFulltextNodeDocumentIdentifier, $closestFulltextNodeContextPath, $closestFulltextNode->getIdentifier()), LOG_WARNING, null, 'ElasticSearch (CR)');
397
397
}
398
398
399
399
/**
@@ -469,7 +469,7 @@ public function flush()
469
469
foreach ($bulkRequestTupleas$bulkRequestItem) {
470
470
$itemAsJson = json_encode($bulkRequestItem);
471
471
if ($itemAsJson === false) {
472
-
$this->logger->log('Indexing Error: Bulk request item could not be encoded as JSON - ' . json_last_error_msg(), LOG_ERR, $bulkRequestItem, 'ElasticSearch (CR)');
472
+
$this->logger->log('NodeIndexer: Bulk request item could not be encoded as JSON - ' . json_last_error_msg(), LOG_ERR, $bulkRequestItem, 'ElasticSearch (CR)');
0 commit comments