Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow users to filter out certain handle_in messages #5943

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cocoa-xu
Copy link

@cocoa-xu cocoa-xu commented Oct 3, 2024

When running in dev mode there can be quite a lot handle_in messages being logged, and it would be better if we can filter out certain messages, e.g., filter out the ones that have already been verified to work and just log the ones I'm interested in or currently debugging.

@cocoa-xu cocoa-xu force-pushed the cx-customize-handle-in-logging branch from 5df0824 to facaabc Compare October 3, 2024 03:04
tw00
tw00 approved these changes Oct 3, 2024
@josevalim
Copy link
Member

Instead of making this a compile-time configuration, perhaps we can make it a socket one? Perhaps an API that adds a filter to the socket? For example, on join, we could do:

log_filter(socket, &some_function/1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants