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 2017/07/13 17:44:57 UTC
svn commit: r1801855 -
/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java
Author: fschumacher
Date: Thu Jul 13 17:44:57 2017
New Revision: 1801855
URL: http://svn.apache.org/viewvc?rev=1801855&view=rev
Log:
Use log string templates instead of string concatenation.
This should make the code a bit more readable.
In preparation of Bugzilla Id: 61176 (and github pr #298)
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java
Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java?rev=1801855&r1=1801854&r2=1801855&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java Thu Jul 13 17:44:57 2017
@@ -282,7 +282,7 @@ public class CacheManager extends Config
public void setHeaders(URL url, HttpRequestBase request) {
CacheEntry entry = getCache().get(url.toString());
if (log.isDebugEnabled()){
- log.debug(request.getMethod()+"(OAH) "+url.toString()+" "+entry);
+ log.debug("{}(OAH) {} {}", request.getMethod(), url.toString(), entry);
}
if (entry != null){
final String lastModified = entry.getLastModified();
@@ -308,7 +308,7 @@ public class CacheManager extends Config
public void setHeaders(HttpURLConnection conn, URL url) {
CacheEntry entry = getCache().get(url.toString());
if (log.isDebugEnabled()){
- log.debug(conn.getRequestMethod()+"(Java) "+url.toString()+" "+entry);
+ log.debug("{}(Java) {} {}", conn.getRequestMethod(), url.toString(), entry);
}
if (entry != null){
final String lastModified = entry.getLastModified();