You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2019/08/25 19:16:30 UTC
[jmeter] 02/02: Use log string formatting
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 adb699308d9557545d571760699643a97c69d386
Author: Felix Schumacher <fe...@internetallee.de>
AuthorDate: Sun Aug 25 21:14:22 2019 +0200
Use log string formatting
---
.../src/main/java/org/apache/jmeter/functions/Jexl3Function.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/functions/src/main/java/org/apache/jmeter/functions/Jexl3Function.java b/src/functions/src/main/java/org/apache/jmeter/functions/Jexl3Function.java
index 2b1f2d7..55d1959 100644
--- a/src/functions/src/main/java/org/apache/jmeter/functions/Jexl3Function.java
+++ b/src/functions/src/main/java/org/apache/jmeter/functions/Jexl3Function.java
@@ -101,10 +101,8 @@ public class Jexl3Function extends AbstractFunction implements ThreadListener {
if (vars != null && varName.length() > 0) {// vars will be null on TestPlan
vars.put(varName, str);
}
- } catch (Exception e)
- {
- log.error("An error occurred while evaluating the expression \""
- + exp + "\"\n",e);
+ } catch (Exception e) {
+ log.error("An error occurred while evaluating the expression \"{}\"\n", exp, e);
}
return str;
}