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

[tor-commits] [bridgedb/master] Fix log statement parameter for Stem descriptor class names.



commit 7e99a163a15cdc6c66b202aa91cc2fac2c440b52
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Sun Apr 19 03:21:00 2015 +0000

    Fix log statement parameter for Stem descriptor class names.
---
 lib/bridgedb/parse/descriptors.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bridgedb/parse/descriptors.py b/lib/bridgedb/parse/descriptors.py
index bec10b3..3f8d48e 100644
--- a/lib/bridgedb/parse/descriptors.py
+++ b/lib/bridgedb/parse/descriptors.py
@@ -190,7 +190,7 @@ def deduplicate(descriptors, statistics=False):
     for descriptor in descriptors:
         fingerprint = descriptor.fingerprint
         logging.debug("Deduplicating %s descriptor for router %s"
-                      % (str(descriptor.__class__).rsplit('.', 1)[1],
+                      % (descriptor.__class__.__name__.rsplit('.', 1)[-1],
                          safelog.logSafely(fingerprint)))
         if fingerprint in duplicates:
             duplicates[fingerprint].append(descriptor)



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