v0.5.1
Added:
- Added
LOG_MSG_PREFIX
(boolean) environment variable which is enabled by default. Prefix all log messages with a prefix containing information about the calling filename, class, and function name, e.g.ratelimit.py Ratelimit.update() -
. - Always prepend log messages with message ID (Postfix
queue_id
) if available, independent fromLOG_MSG_PREFIX
feature being enabled/disabled.
Fixed:
- Fix
AttributeError: 'NoneType' object has no attribute 'read' in Ratelimit.find()
edge case wheresasl_username
was set in Postfix DATA but empty. We now bail out early ifsasl_username
either does not exist or is empty.