[tor-commits] [bridgedb/master] Don't log emails if SAFE_LOGGING is enabled.

isis at torproject.org isis at torproject.org
Sun Mar 16 19:04:57 UTC 2014


commit 3a3fe60e159bfcb93f51cff861a0db794b867ad4
Author: Isis Lovecruft <isis at torproject.org>
Date:   Sat Feb 22 00:15:23 2014 +0000

    Don't log emails if SAFE_LOGGING is enabled.
---
 lib/bridgedb/EmailServer.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bridgedb/EmailServer.py b/lib/bridgedb/EmailServer.py
index c37713e..82a99ed 100644
--- a/lib/bridgedb/EmailServer.py
+++ b/lib/bridgedb/EmailServer.py
@@ -428,7 +428,7 @@ def composeEmail(fromAddr, clientAddr, subject, body, msgID=False,
         mailbody.write(body)
 
     f.seek(0)
-    logging.debug("Email body:\n%s" % f.read())
+    logging.debug("Email body:\n%s" % Util.logSafely(f.read()))
     f.seek(0)
     return clientAddr, f
 





More information about the tor-commits mailing list