jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject [jmeter] 01/03: Log errors at error level
Date Sat, 28 Sep 2019 10:42:18 GMT
This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git

commit 1ea8b70c739534fca2ded71c24151efbb249b6fc
Author: Felix Schumacher <felix.schumacher@internetallee.de>
AuthorDate: Sat Sep 28 12:22:29 2019 +0200

    Log errors at error level
    
    the isDebugEnabled decides whether the logs should contain an exception
---
 .../org/apache/jmeter/extractor/json/jmespath/JMESPathExtractor.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/src/main/java/org/apache/jmeter/extractor/json/jmespath/JMESPathExtractor.java
b/src/components/src/main/java/org/apache/jmeter/extractor/json/jmespath/JMESPathExtractor.java
index 5c411c6..7274bcc 100644
--- a/src/components/src/main/java/org/apache/jmeter/extractor/json/jmespath/JMESPathExtractor.java
+++ b/src/components/src/main/java/org/apache/jmeter/extractor/json/jmespath/JMESPathExtractor.java
@@ -92,9 +92,9 @@ public class JMESPathExtractor extends AbstractScopedTestElement
         } catch (Exception e) {
             // if something wrong, default value added
             if (log.isDebugEnabled()) {
-                log.debug("Error processing JSON content in {}, message: {}", getName(),
e.getLocalizedMessage(), e);
+                log.error("Error processing JSON content in {}, message: {}", getName(),
e.getLocalizedMessage(), e);
             } else {
-                log.debug("Error processing JSON content in {}, message: {}", getName(),
e.getLocalizedMessage());
+                log.error("Error processing JSON content in {}, message: {}", getName(),
e.getLocalizedMessage());
             }
             vars.put(refName, defaultValue);
         }


Mime
View raw message