jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1853284 - in /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control: CacheManager.java DNSCacheManager.java
Date Sat, 09 Feb 2019 15:41:45 GMT
Author: fschumacher
Date: Sat Feb  9 15:41:45 2019
New Revision: 1853284

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

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java
    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/CacheManager.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java?rev=1853284&r1=1853283&r2=1853284&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
Sat Feb  9 15:41:45 2019
@@ -69,7 +69,7 @@ public class CacheManager extends Config
 
     static {
         if (log.isInfoEnabled()) {
-            log.info("Will only cache the following methods: " + Arrays.toString(CACHEABLE_METHODS));
+            log.info("Will only cache the following methods: {}", Arrays.toString(CACHEABLE_METHODS));
         }
     }
     //+ JMX attributes, do not change values
@@ -276,7 +276,7 @@ public class CacheManager extends Config
                     .parseDate(expires);
         } catch (IllegalArgumentException e) {
             if (log.isDebugEnabled()) {
-                log.debug("Unable to parse Expires: '" + expires + "' " + e);
+                log.debug("Unable to parse Expires: '{}' {}", expires, e.toString());
             }
             expiresDate = CacheManager.EXPIRED_DATE; // invalid dates must be
                                                      // treated as expired

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=1853284&r1=1853283&r2=1853284&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  9 15:41:45 2019
@@ -269,7 +269,7 @@ public class DNSCacheManager extends Con
                             addresses[i] = ((ARecord) records[i]).getAddress();
                         }
                     } catch (TextParseException tpe) {
-                        log.debug("Failed to create Lookup object: " + tpe);
+                        log.debug("Failed to create Lookup object: {}", tpe.toString());
                     }
                     return addresses;
                 }



Mime
View raw message