commit 584d5911df5318caeabc5b57a0b480dc10d211e9 Author: Isis Lovecruft isis@torproject.org Date: Thu Apr 2 05:05:28 2015 +0000
Don't log special/private attributes when logging changed configuration. --- lib/bridgedb/configure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/bridgedb/configure.py b/lib/bridgedb/configure.py index 8a24d35..2992e1c 100644 --- a/lib/bridgedb/configure.py +++ b/lib/bridgedb/configure.py @@ -83,7 +83,8 @@ def loadConfig(configFile=None, configCls=None): if itsSafeToUseLogging: logging.debug("New configuration settings:") logging.debug("\n".join(["{0} = {1}".format(key, value) - for key, value in configuration.items()])) + for key, value in configuration.items() + if not key.startswith('_')]))
# Create a :class:`Conf` from the settings stored within the local scope # of the ``configuration`` dictionary: