Message filtering logging is unhelpful
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EnDroid |
Fix Released
|
Medium
|
ChrisD |
Bug Description
The standard rate-limiting plugin defines always-on filters for sending and receiving messages. These filters (almost) always filter out the messages, to queue them up and send (if the sender/recipient isn't being ratelimited).
This means that logs of this form are very common:
2014-08-12 12:02:45 INFO Sending message to j@i.d
2014-08-12 12:02:45 INFO Filtered out message to j@i.d
2014-08-12 12:02:45 INFO Sending message to j@i.d
2014-08-12 12:02:45 INFO Filtered out message to j@i.d
2014-08-12 12:02:45 INFO Sending message to j@i.d
2014-08-12 12:02:45 INFO Filtered out message to j@i.d
There are a couple of problems with this:
- 'Filtered out message' is a bit misleading (although accurate from the core's point of view).
- There's no indication of *why* the message is filtered.
The 'filtered out' log should be updated to indicate the filter callback that caused the message to be filtered
Related branches
- Phil Connell: Approve
-
Diff: 777 lines (+244/-206)9 files modifiedREADME (+2/-3)
doc/wiki/Reference (+5/-3)
etc/endroid.conf (+108/-55)
src/endroid/__init__.py (+15/-5)
src/endroid/messagehandler.py (+6/-2)
src/endroid/plugins/httpinterface.py (+10/-1)
src/endroid/plugins/periodicpinger.py (+20/-26)
src/endroid/plugins/sms/__init__.py (+77/-110)
src/endroid/plugins/timer.py (+1/-1)
summary: |
- Message 'filtering' logging is unhelpful + Message filtering logging is unhelpful |
Changed in endroid: | |
status: | Fix Committed → Fix Released |
status: | Fix Released → Fix Committed |
Changed in endroid: | |
status: | Fix Committed → Fix Released |
Alternatively, it would be good to rework the ratelimit plugin such that it doesn't filter messages that it is allowing to be sent.
This may need more integration into the core message handling.