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

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



commit 3a3fe60e159bfcb93f51cff861a0db794b867ad4
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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
 



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