commit f3aff5a7c6acef4f0f643b55eb94449719ac8039 Author: hiro hiro@torproject.org Date: Fri Oct 18 13:06:01 2019 +0200
Remove logs and fix checks --- gettor/parse/email.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/gettor/parse/email.py b/gettor/parse/email.py index decc13e..2cb55d5 100644 --- a/gettor/parse/email.py +++ b/gettor/parse/email.py @@ -152,13 +152,7 @@ class EmailParser(object):
def too_many_requests(self, hid, num_requests, limit): - test_hid = self.settings.get('test_hid') - log.msg( - "test_hid {}".format(test_hid), system="email parser" - ) - log.msg( - "hid {}".format(hid), system="email parser" - ) + test_hid = self.settings.get("test_hid") if hid == test_hid: return False elif num_requests < limit: @@ -251,8 +245,6 @@ class EmailParser(object): hid, num_requests[0][0], email_requests_limit )
- log.msg("check: {}".format(check), system="email parser") - if check: log.msg( "Discarded. Too many requests from {}.".format(
tor-commits@lists.torproject.org