Make error logging more explicit to aid debugging
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
1.0.3
|
||||||
|
- Make error logging more explicit to aid debugging
|
||||||
|
|
||||||
1.0.2 2019-10-07
|
1.0.2 2019-10-07
|
||||||
- Fix startup logging so it provides information at a useful time
|
- Fix startup logging so it provides information at a useful time
|
||||||
- Fix message extraction so that signing in the same pass through the milter
|
- Fix message extraction so that signing in the same pass through the milter
|
||||||
|
|||||||
@@ -285,7 +285,7 @@ class dkimMilter(Milter.Base):
|
|||||||
except Exception as x:
|
except Exception as x:
|
||||||
self.dkim_comment = str(x)
|
self.dkim_comment = str(x)
|
||||||
if milterconfig.get('Syslog'):
|
if milterconfig.get('Syslog'):
|
||||||
syslog.syslog("check_dkim: {0}".format(x))
|
syslog.syslog("check_dkim: Internal program fault while verifying: {0}".format(x))
|
||||||
try:
|
try:
|
||||||
self.header_i = d.signature_fields.get(b'i')
|
self.header_i = d.signature_fields.get(b'i')
|
||||||
except TypeError as x:
|
except TypeError as x:
|
||||||
@@ -296,7 +296,7 @@ class dkimMilter(Milter.Base):
|
|||||||
except Exception as x:
|
except Exception as x:
|
||||||
self.dkim_comment = str(x)
|
self.dkim_comment = str(x)
|
||||||
if milterconfig.get('Syslog'):
|
if milterconfig.get('Syslog'):
|
||||||
syslog.syslog("check_dkim: {0}".format(x))
|
syslog.syslog("check_dkim: Internal proram fuault extracting header a or d: {0}".format(x))
|
||||||
self.header_d = None
|
self.header_d = None
|
||||||
if not self.header_a:
|
if not self.header_a:
|
||||||
self.header_a = 'rsa-sha256'
|
self.header_a = 'rsa-sha256'
|
||||||
|
|||||||
Reference in New Issue
Block a user