Message filtering logging is unhelpful

Bug #1355783 reported by Phil Connell
10
This bug affects 2 people
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 (pconnell)
summary: - Message 'filtering' logging is unhelpful
+ Message filtering logging is unhelpful
Revision history for this message
Phil Connell (pconnell) wrote :

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.

Revision history for this message
ChrisD (gingerchris) wrote :

Reduced filtering logging to debug.
It's the responsibility of filters to debug info on why they are filtering.
In ratelimit's case as it's not actually filtering the message there's nothing to add.

There maybe better ways to solve this, happy to have wishlist or blueprint items for them

Changed in endroid:
status: Confirmed → Fix Committed
assignee: nobody → Chris (gingerchris)
ChrisD (gingerchris)
Changed in endroid:
status: Fix Committed → Fix Released
status: Fix Released → Fix Committed
ChrisD (gingerchris)
Changed in endroid:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.