[
https://issues.apache.org/jira/browse/KAFKA-7353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16595573#comment-16595573
]
Kevin Lafferty commented on KAFKA-7353:
---------------------------------------
An example is this log line in
o.a.k.connect.runtime.WorkerSourceTask.sendRecords():
{{log.error("{} Task failed initialization and will not be started.", this,
t);}}
'this' resolves to something like
'org.apache.kafka.connect.runtime.WorkerSourceTask$1@75dbeed9' instead of the
overridden toString method on WorkerSourceTask.
> Connect logs 'this' for anonymous inner classes
> -----------------------------------------------
>
> Key: KAFKA-7353
> URL: https://issues.apache.org/jira/browse/KAFKA-7353
> Project: Kafka
> Issue Type: Bug
> Components: KafkaConnect
> Affects Versions: 1.0.2, 1.1.1, 2.0.0
> Reporter: Kevin Lafferty
> Priority: Minor
>
> Some classes in the Kafka Connect runtime create anonymous inner classes that
> log 'this', resulting in log messages that can't be correlated with any other
> messages. These should scope 'this' to the outer class to have consistent log
> messages.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)