Commit f3aff5a7 authored by Hiro's avatar Hiro 🏄
Browse files

Remove logs and fix checks

parent 4515c62f
...@@ -152,13 +152,7 @@ class EmailParser(object): ...@@ -152,13 +152,7 @@ class EmailParser(object):
def too_many_requests(self, hid, num_requests, limit): def too_many_requests(self, hid, num_requests, limit):
test_hid = self.settings.get('test_hid') 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"
)
if hid == test_hid: if hid == test_hid:
return False return False
elif num_requests < limit: elif num_requests < limit:
...@@ -251,8 +245,6 @@ class EmailParser(object): ...@@ -251,8 +245,6 @@ class EmailParser(object):
hid, num_requests[0][0], email_requests_limit hid, num_requests[0][0], email_requests_limit
) )
log.msg("check: {}".format(check), system="email parser")
if check: if check:
log.msg( log.msg(
"Discarded. Too many requests from {}.".format( "Discarded. Too many requests from {}.".format(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment