Skip to content

v0.5.1

Compare
Choose a tag to compare
@onlime onlime released this 30 Aug 19:32
· 18 commits to main since this release
abf4738

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 from LOG_MSG_PREFIX feature being enabled/disabled.

Fixed:

  • Fix AttributeError: 'NoneType' object has no attribute 'read' in Ratelimit.find() edge case where sasl_username was set in Postfix DATA but empty. We now bail out early if sasl_username either does not exist or is empty.