jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1860630 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java
Date Tue, 04 Jun 2019 18:29:13 GMT
Author: fschumacher
Date: Tue Jun  4 18:29:13 2019
New Revision: 1860630

URL: http://svn.apache.org/viewvc?rev=1860630&view=rev
Log:
Use log string formatting.

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java?rev=1860630&r1=1860629&r2=1860630&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java
Tue Jun  4 18:29:13 2019
@@ -146,16 +146,18 @@ public class HTTPArgument extends Argume
             try {
                 // We assume the name is always encoded according to spec
                 if(log.isDebugEnabled()) {
-                    log.debug("Decoding name, calling URLDecoder.decode with '"+name+"' and
contentEncoding:"+EncoderCache.URL_ARGUMENT_ENCODING);
+                    log.debug("Decoding name, calling URLDecoder.decode with '{}' and contentEncoding:
'{}'", name,
+                            EncoderCache.URL_ARGUMENT_ENCODING);
                 }
                 name = URLDecoder.decode(name, EncoderCache.URL_ARGUMENT_ENCODING);
                 // The value is encoded in the specified encoding
                 if(log.isDebugEnabled()) {
-                    log.debug("Decoding value, calling URLDecoder.decode with '"+value+"'
and contentEncoding:"+contentEncoding);
+                    log.debug("Decoding value, calling URLDecoder.decode with '{}' and contentEncoding:
'{}'", value,
+                            contentEncoding);
                 }
                 value = URLDecoder.decode(value, contentEncoding);
             } catch (UnsupportedEncodingException e) {
-                log.error(contentEncoding + " encoding not supported!");
+                log.error("{} encoding not supported!", contentEncoding);
                 throw new Error(e.toString(), e);
             }
         }



Mime
View raw message