[tor-commits] [metrics-db/master] Make log message about invalid or-address lines more useful.

karsten at torproject.org karsten at torproject.org
Thu Feb 16 12:24:46 UTC 2012


commit a2a7e6f173ef4fb7cfa66782aaa38969a00f0686
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Thu Feb 16 13:24:15 2012 +0100

    Make log message about invalid or-address lines more useful.
---
 .../ernie/db/SanitizedBridgesWriter.java           |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/org/torproject/ernie/db/SanitizedBridgesWriter.java b/src/org/torproject/ernie/db/SanitizedBridgesWriter.java
index d2f2a02..c15c6d1 100644
--- a/src/org/torproject/ernie/db/SanitizedBridgesWriter.java
+++ b/src/org/torproject/ernie/db/SanitizedBridgesWriter.java
@@ -768,8 +768,9 @@ public class SanitizedBridgesWriter {
                 if (scrubbedOrAddress != null) {
                   scrubbedOrAddresses.add(scrubbedOrAddress);
                 } else {
-                  this.logger.warning("Invalid address in line '" + line
-                      + "' in bridge server descriptor.  Skipping line!");
+                  this.logger.warning("Invalid address in line "
+                      + "'or-address " + orAddress + "' in bridge server "
+                      + "descriptor.  Skipping line!");
                 }
               }
             }



More information about the tor-commits mailing list