ChrisSamo632 commented on a change in pull request #4148: NIFI-7264 Make 
jsonPath Expression Logging More Reasonable
URL: https://github.com/apache/nifi/pull/4148#discussion_r393802393
 
 

 ##########
 File path: 
nifi-commons/nifi-expression-language/src/main/java/org/apache/nifi/attribute/expression/language/evaluation/functions/JsonPathEvaluator.java
 ##########
 @@ -46,7 +47,14 @@ public JsonPathEvaluator(final Evaluator<String> subject, 
final Evaluator<String
         Object result = null;
         try {
             result = documentContext.read(compiledJsonPath);
+        } catch (PathNotFoundException pnf) {
+            // it is valid for a path not to be found, keys may not be there
+            // do not span the error log for this, instead we can log debug
 
 Review comment:
   (L) `spam` instead of `span`

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


With regards,
Apache Git Services

Reply via email to