[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-web/master] Use parameterized log statements.



commit 9f0d510a28c376af1533f46cd3afddb691662f97
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Tue Aug 21 10:03:30 2018 +0200

    Use parameterized log statements.
---
 src/main/java/org/torproject/metrics/stats/connbidirect/Main.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/torproject/metrics/stats/connbidirect/Main.java b/src/main/java/org/torproject/metrics/stats/connbidirect/Main.java
index c4f1b34..426a7cf 100644
--- a/src/main/java/org/torproject/metrics/stats/connbidirect/Main.java
+++ b/src/main/java/org/torproject/metrics/stats/connbidirect/Main.java
@@ -78,8 +78,8 @@ public class Main {
           return new RawStat(dateDays, fingerprint, fractionRead,
               fractionWrite, fractionBoth);
         } else {
-          log.warn("Could not deserialize raw statistic from string '" + string
-              + "'.");
+          log.warn("Could not deserialize raw statistic from string '{}'.",
+              string);
           return null;
         }
       } catch (NumberFormatException e) {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits