[tor-commits] [metrics-web/master] Fix trivial bug in log message.

karsten at torproject.org karsten at torproject.org
Tue Jul 3 23:03:55 UTC 2012


commit 5ce9401ae218ce664e87856bb9a5e54a5f591ded
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Wed Jul 4 01:03:15 2012 +0200

    Fix trivial bug in log message.
---
 src/org/torproject/ernie/cron/GetTorProcessor.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/org/torproject/ernie/cron/GetTorProcessor.java b/src/org/torproject/ernie/cron/GetTorProcessor.java
index 34190b6..d561784 100644
--- a/src/org/torproject/ernie/cron/GetTorProcessor.java
+++ b/src/org/torproject/ernie/cron/GetTorProcessor.java
@@ -146,7 +146,7 @@ public class GetTorProcessor {
 
     logger.info("Finished processing statistics on Tor packages "
         + "delivered by GetTor.\nLast date in statistics is "
-        + data.lastKey() + ".");
+        + (data.isEmpty() ? "(null)" : data.lastKey()) + ".");
   }
 }
 



More information about the tor-commits mailing list