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:
[email protected]


With regards,
Apache Git Services

Reply via email to