You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/02/06 01:12:55 UTC

[GitHub] rdhabalia commented on a change in pull request #1179: Avoid printing exception stack trace on lookup connection failures

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:
users@infra.apache.org


With regards,
Apache Git Services