jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1782632 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DNSCacheManager.java
Date Sat, 11 Feb 2017 18:11:18 GMT
Author: fschumacher
Date: Sat Feb 11 18:11:17 2017
New Revision: 1782632

URL: http://svn.apache.org/viewvc?rev=1782632&view=rev
Log:
Use new format string capability of logger

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DNSCacheManager.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DNSCacheManager.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DNSCacheManager.java?rev=1782632&r1=1782631&r2=1782632&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DNSCacheManager.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DNSCacheManager.java
Sat Feb 11 18:11:17 2017
@@ -155,8 +155,8 @@ public class DNSCacheManager extends Con
         // https://docs.oracle.com/javase/8/docs/api/java/util/LinkedHashMap.html
         if (result != null || cache.containsKey(host)) {
             if (log.isDebugEnabled()) {
-                log.debug("Cache hit thr#" + JMeterContextService.getContext().getThreadNum()
+ ": " + host + "=>"
-                        + Arrays.toString(result));
+                log.debug("Cache hit thr#{}: {} => {}", JMeterContextService.getContext().getThreadNum(),
host,
+                        Arrays.toString(result));
             }
             return result;
         } else if (isStaticHost(host)) {
@@ -170,8 +170,8 @@ public class DNSCacheManager extends Con
         } else {
             InetAddress[] addresses = requestLookup(host);
             if (log.isDebugEnabled()) {
-                log.debug("Cache miss thr#" + JMeterContextService.getContext().getThreadNum()
+ ": " + host + "=>"
-                        + Arrays.toString(addresses));
+                log.debug("Cache miss thr#{}: {} => {}", JMeterContextService.getContext().getThreadNum(),
host,
+                        Arrays.toString(addresses));
             }
             cache.put(host, addresses);
             return addresses;
@@ -266,8 +266,8 @@ public class DNSCacheManager extends Con
         }
         addresses = systemDefaultDnsResolver.resolve(host);
         if (log.isDebugEnabled()) {
-            log.debug("Cache miss: " + host + " Thread #" + JMeterContextService.getContext().getThreadNum()
-                    + ", resolved with system resolver into " + Arrays.toString(addresses));
+            log.debug("Cache miss: {} Thread #{}, resolved with system resolver into {}",
host,
+                    JMeterContextService.getContext().getThreadNum(), Arrays.toString(addresses));
         }
         return addresses;
     }



Mime
View raw message