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 2021/05/07 04:54:54 UTC

[GitHub] [pulsar] jerrypeng commented on a change in pull request #10290: [Functions] Added more details to error message to assist with debugging exceptions

jerrypeng commented on a change in pull request #10290:
URL: https://github.com/apache/pulsar/pull/10290#discussion_r627924922



##########
File path: pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/JavaInstanceRunnable.java
##########
@@ -711,7 +711,9 @@ private void setupInput(ContextImpl contextImpl) throws Exception {
                         }.getType()), contextImpl);
             }
         } catch (Exception e) {
-            log.error("Source open produced uncaught exception: ", e);
+            log.error("Source open produced uncaught exception with ContextImpl of {}. "
+                            + "sourceSpec is {}. Exception is {}.",

Review comment:
       Printing the sourceSpec here is unnecessary. sourceSpec source already be printed when the function first starts.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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