commit 07ca1978ceb841e22d2c7389a0116f1d92677039 Author: Isis Lovecruft isis@torproject.org Date: Wed May 28 18:12:15 2014 +0000
Add more logging to b.e.server.checkDKIM() function. --- lib/bridgedb/email/server.py | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/lib/bridgedb/email/server.py b/lib/bridgedb/email/server.py index c0ea273..2a2a66f 100644 --- a/lib/bridgedb/email/server.py +++ b/lib/bridgedb/email/server.py @@ -65,6 +65,9 @@ def checkDKIM(message, rules): 2. Those headers were *not* okay. Otherwise, returns ``True``. """ + logging.info("Checking DKIM verification results...") + logging.debug("Domain has rules: %s" % ', '.join(rules)) + if 'dkim' in rules: # getheader() returns the last of a given kind of header; we want # to get the first, so we use getheaders() instead.
tor-commits@lists.torproject.org