[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [metrics-web/master] Stop warning when Torperf data are stale.
commit 71b8d3a19108f74df286f964a59fd06b535e5ee1
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Mon Aug 27 06:21:11 2012 +0200
Stop warning when Torperf data are stale.
That's metrics-db's job, not metrics-web's. Having 1 hourly warning mail
(from metrics-db) is enough.
---
.../torproject/ernie/cron/TorperfProcessor.java | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
diff --git a/src/org/torproject/ernie/cron/TorperfProcessor.java b/src/org/torproject/ernie/cron/TorperfProcessor.java
index ff64fb0..5d43150 100644
--- a/src/org/torproject/ernie/cron/TorperfProcessor.java
+++ b/src/org/torproject/ernie/cron/TorperfProcessor.java
@@ -255,9 +255,6 @@ public class TorperfProcessor {
+ "Last known obserations by source and file size are:");
String lastSource = null;
String lastLine = null;
- Level logLevel = Level.INFO;
- String cutoff = formatter.format(System.currentTimeMillis()
- - 12L * 60L * 60L * 1000L).replaceAll(",", " ");
for (String s : rawObs.keySet()) {
String[] parts = s.split(",");
if (lastSource == null) {
@@ -267,9 +264,6 @@ public class TorperfProcessor {
+ lastLine.split(",")[2];
dumpStats.append("\n" + lastSource + " " + lastKnownObservation);
lastSource = parts[0];
- if (cutoff.compareTo(lastKnownObservation) > 0) {
- logLevel = Level.WARNING;
- }
}
lastLine = s;
}
@@ -277,11 +271,8 @@ public class TorperfProcessor {
String lastKnownObservation = lastLine.split(",")[1] + " "
+ lastLine.split(",")[2];
dumpStats.append("\n" + lastSource + " " + lastKnownObservation);
- if (cutoff.compareTo(lastKnownObservation) > 0) {
- logLevel = Level.WARNING;
- }
}
- logger.log(logLevel, dumpStats.toString());
+ logger.info(dumpStats.toString());
/* Write results to database. */
if (connectionURL != null) {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits