[tor-commits] [metrics-web/master] Use parameterized log statements.
karsten at torproject.org
karsten at torproject.org
Mon Aug 27 12:35:18 UTC 2018
commit 9f0d510a28c376af1533f46cd3afddb691662f97
Author: Karsten Loesing <karsten.loesing at gmx.net>
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) {
More information about the tor-commits
mailing list