
24 Feb
2014
24 Feb
'14
5:05 p.m.
commit 3a3fe60e159bfcb93f51cff861a0db794b867ad4 Author: Isis Lovecruft <isis@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