kevdoran commented on code in PR #11330:
URL: https://github.com/apache/nifi/pull/11330#discussion_r3403855476
##########
nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/ExtensionBuilder.java:
##########
@@ -538,11 +539,16 @@ public Resource getResource() {
connectorValidationTrigger,
false
);
+ // Late-bind the logging context to the connector node so that MDC
attributes assembled by
+ // the node (framework keys + provider-supplied custom keys) flow
through the connector's
+ // own ComponentLog as well as the managed flow's nested components.
Provider-supplied custom
+ // attributes are sourced and applied by the ConnectorRepository when
the node is added/restored.
+ loggingContext.setComponent(connectorNode);
Review Comment:
Yeah this should have used StandardConnectorNode here. Fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]