You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2017/12/05 19:28:19 UTC

[GitHub] rabbah closed pull request #3017: log exception when ensureTopic fails with unexpected exception

rabbah closed pull request #3017: log exception when ensureTopic fails with unexpected exception
URL: https://github.com/apache/incubator-openwhisk/pull/3017
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/common/scala/src/main/scala/whisk/connector/kafka/KafkaMessagingProvider.scala b/common/scala/src/main/scala/whisk/connector/kafka/KafkaMessagingProvider.scala
index 5c61cc6451..599b5bfe72 100644
--- a/common/scala/src/main/scala/whisk/connector/kafka/KafkaMessagingProvider.scala
+++ b/common/scala/src/main/scala/whisk/connector/kafka/KafkaMessagingProvider.scala
@@ -64,8 +64,8 @@ object KafkaMessagingProvider extends MessagingProvider {
       case e: ExecutionException if e.getCause.isInstanceOf[TopicExistsException] =>
         logging.info(this, s"topic $topic already existed")
         true
-      case _: Exception =>
-        logging.error(this, s"exception during creation of topic $topic")
+      case e: Exception =>
+        logging.error(this, s"ensureTopic for $topic failed due to $e")
         false
     } finally {
       client.close()


 

----------------------------------------------------------------
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