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

Fix overly spammy TRACE logging in async onion message event handling (main) #3508

Conversation

tnull
Copy link
Contributor

@tnull tnull commented Jan 7, 2025

This is #3507, just towards the main branch.

In #3449, we introduced TRACE-level logging for event handling. However, in onion messenger we'd now log (twice, actually) every time process_events_async is called, which is very very spammy:

2025-01-07 14:42:29 TRACE [lightning::onion_message::messenger:1450] Done handling events async, results: []
2025-01-07 14:42:29 TRACE [lightning::onion_message::messenger:1450] Done handling events async, results: []
2025-01-07 14:42:29 TRACE [lightning::onion_message::messenger:1450] Done handling events async, results: []
2025-01-07 14:42:29 TRACE [lightning::onion_message::messenger:1450] Done handling events async, results: []
2025-01-07 14:42:29 TRACE [lightning::onion_message::messenger:1450] Done handling events async, results: []
2025-01-07 14:42:30 TRACE [lightning::onion_message::messenger:1450] Done handling events async, results: []
2025-01-07 14:42:30 TRACE [lightning::onion_message::messenger:1450] Done handling events async, results: []
2025-01-07 14:42:30 TRACE [lightning::onion_message::messenger:1450] Done handling events async, results: []
2025-01-07 14:42:30 TRACE [lightning::onion_message::messenger:1450] Done handling events async, results: []
2025-01-07 14:42:30 TRACE [lightning::onion_message::messenger:1450] Done handling events async, results: []
....

Here we fix this by short-cutting to only proceed when we actualy have any event futures to poll.

We recently introduced `TRACE`-level logging for event handling.
However, in onion messenger we'd now log (twice, actually) every time
`process_events_async` is called, which is very very spammy. Here we fix
this by short-cutting to only proceed when we actualy have any event
futures to poll.
@tnull tnull merged commit 2c0066e into lightningdevkit:main Jan 8, 2025
16 of 19 checks passed
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