You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2022/04/12 20:29:59 UTC

[GitHub] [geode] pivotal-jbarrett commented on a diff in pull request #7584: GEODE-10231 : Add configuration for suppressing FunctionException logging

pivotal-jbarrett commented on code in PR #7584:
URL: https://github.com/apache/geode/pull/7584#discussion_r848842527


##########
geode-core/src/main/java/org/apache/geode/internal/cache/execute/AbstractExecution.java:
##########
@@ -504,8 +508,16 @@ private void handleException(Throwable functionException, final Function fn,
         ((InternalResultSender) sender).setException(functionException);
       }
     } else {
-      logger.warn("Exception occurred on local node while executing Function:",
-          functionException);
+      if (AbstractExecution.SUPPRESS_FUNCTION_EXCEPTION_LOGGING
+          && functionException instanceof FunctionException) {
+        if (logger.isDebugEnabled()) {

Review Comment:
   Isn't there a way to do this in log4j with markers or something? It seems rather heavy to need an external parameter to toggle the log-level or verbosity of this message.



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

To unsubscribe, e-mail: notifications-unsubscribe@geode.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org