rdhabalia commented on a change in pull request #1179: Avoid printing exception
stack trace on lookup connection failures
URL: https://github.com/apache/incubator-pulsar/pull/1179#discussion_r166162464
##########
File path:
pulsar-client/src/main/java/org/apache/pulsar/client/impl/BinaryProtoLookupService.java
##########
@@ -131,7 +132,7 @@ public BinaryProtoLookupService(PulsarClientImpl client,
String serviceUrl, bool
}).exceptionally((sendException) -> {
// lookup failed
log.warn("[{}] failed to send lookup request : {}",
destination.toString(), sendException.getMessage(),
- sendException);
+ sendException instanceof ClosedChannelException ? null
: sendException);
Review comment:
instead null if we print empty string `""` then log will show empty string
instead `{}`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services