Skip to content

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