[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/develop] Only log incoming emails if SAFELOGGING is disabled.
commit 394161ce5794469602d4c6f3ac194a5646e2e9b8
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Mon Apr 7 02:51:44 2014 +0000
Only log incoming emails if SAFELOGGING is disabled.
---
lib/bridgedb/EmailServer.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/bridgedb/EmailServer.py b/lib/bridgedb/EmailServer.py
index 56e6aea..a02a2fe 100644
--- a/lib/bridgedb/EmailServer.py
+++ b/lib/bridgedb/EmailServer.py
@@ -355,7 +355,8 @@ class MailMessage(object):
def lineReceived(self, line):
"""Called when we get another line of an incoming message."""
self.nBytes += len(line)
- logging.debug("> %s", line.rstrip("\r\n"))
+ if not util.safe_logging:
+ logging.debug("> %s", line.rstrip("\r\n"))
if self.nBytes > self.ctx.maximumSize:
self.ignoring = True
else:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits