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

gossipd: Make gossipd shut up #3981

Merged
merged 6 commits into from
Aug 27, 2020

Conversation

cdecker
Copy link
Member

@cdecker cdecker commented Aug 26, 2020

We are logging way too much from gossipd, causing noisy logs. This PR reduces
logs for incoming messages to those that actually caused a change in our
internal state (duplicate and old messages are just dropped silently now).

Most of the changes are related to tests breaking due to the reduced logging,
and the fixups required to get them working again. We fix them by polling for
the desired resulting state rather than observing the ephemeral state changes
represented by the logs. This may slow down some of the tests, since we now
poll, but that time is likely going to be used by concurrent tests anyway, and
we end up with more stable tests, that don't rely on implicit log ordering..

Changelog-Changed: gossipd: The gossipd is now a lot quieter, and will log only when a message changed our network topology.

It wasn't waiting for the tx to be in the mempool
We are logging way too much from gossipd, causing noisy logs. This PR reduces
logs for incoming messages to those that actually caused a change in our
internal state (duplicate and old messages are just dropped silently now).

Changelog-Changed: gossipd: The `gossipd` is now a lot quieter, and will log only when a message changed our network topology.
Copy link
Contributor

@rustyrussell rustyrussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack 7c2a9f1

For reference, in my logfile of 6.1M lines:

  1. Ignoring redundant update: 2M lines
  2. Ignoring redundant nannounce: 96k lines
  3. Received channel_update: 2.9M lines
  4. Ignoring update timestamp: 40k lines.

@rustyrussell rustyrussell merged commit f598517 into ElementsProject:master Aug 27, 2020
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.

2 participants