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

[tor-commits] [bridgedb/master] Remove another pprint from a logging call in bridgedb.Main.



commit 6c836322fe8edc9711194dc8b5d51c8e8e8f6194
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Wed Apr 2 14:57:12 2014 +0000

    Remove another pprint from a logging call in bridgedb.Main.
---
 lib/bridgedb/Main.py |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/bridgedb/Main.py b/lib/bridgedb/Main.py
index dc45eab..84e2252 100644
--- a/lib/bridgedb/Main.py
+++ b/lib/bridgedb/Main.py
@@ -275,8 +275,9 @@ def loadConfig(configFile=None, configCls=None):
         exec compiled in configuration
 
     if itsSafeToUseLogging:
-        logging.debug("New configuration settings:\n%s"
-                      % pprint(configuration, depth=4))
+        logging.debug("New configuration settings:")
+        logging.debug("\n".join(["{0} = {1}".format(key, value)
+                                 for key, value in configuration.items()]))
 
     # Create a :class:`Conf` from the settings stored within the local scope
     # of the ``configuration`` dictionary:



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