Skip to content

Ensure we log private channel_updates at a non-GOSSIP log level #1695

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

Merged

Conversation

TheBlueMatt
Copy link
Collaborator

If we receive a channel_update for one of our private channels, we
will not log the message at the usual TRACE log level as the
message falls into the gossip range. However, for our own channels
they aren't just gossip, as we store that info and it changes
how we generate invoices. Thus, we add a log in ChannelManager
here at the DEBUG log level.

@TheBlueMatt TheBlueMatt added this to the 0.0.111 milestone Sep 5, 2022
@codecov-commenter
Copy link

codecov-commenter commented Sep 5, 2022

Codecov Report

Merging #1695 (602cf5c) into main (b84b53a) will increase coverage by 0.08%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1695      +/-   ##
==========================================
+ Coverage   90.77%   90.85%   +0.08%     
==========================================
  Files          80       85       +5     
  Lines       44763    46269    +1506     
  Branches    44763    46269    +1506     
==========================================
+ Hits        40632    42037    +1405     
- Misses       4131     4232     +101     
Impacted Files Coverage Δ
lightning/src/ln/channelmanager.rs 85.13% <0.00%> (+<0.01%) ⬆️
lightning/src/chain/onchaintx.rs 93.79% <0.00%> (-1.12%) ⬇️
lightning/src/chain/keysinterface.rs 92.54% <0.00%> (-1.06%) ⬇️
lightning/src/ln/wire.rs 61.99% <0.00%> (-0.93%) ⬇️
lightning/src/util/config.rs 66.66% <0.00%> (-0.78%) ⬇️
lightning/src/util/test_utils.rs 77.49% <0.00%> (-0.62%) ⬇️
lightning/src/ln/onion_utils.rs 94.88% <0.00%> (-0.57%) ⬇️
lightning/src/ln/monitor_tests.rs 99.55% <0.00%> (-0.45%) ⬇️
lightning/src/routing/gossip.rs 91.43% <0.00%> (-0.38%) ⬇️
lightning/src/ln/peer_channel_encryptor.rs 94.47% <0.00%> (-0.27%) ⬇️
... and 35 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

tnull
tnull previously approved these changes Sep 6, 2022
dunxen
dunxen previously approved these changes Sep 6, 2022
If we receive a channel_update for one of our private channels, we
will not log the message at the usual TRACE log level as the
message falls into the gossip range. However, for our own channels
they aren't *just* gossip, as we store that info and it changes
how we generate invoices. Thus, we add a log in `ChannelManager`
here at the DEBUG log level.
@TheBlueMatt TheBlueMatt dismissed stale reviews from dunxen and tnull via 602cf5c September 6, 2022 17:49
@TheBlueMatt TheBlueMatt force-pushed the 2022-08-log-chan_update branch from 4ea6b7d to 602cf5c Compare September 6, 2022 17:49
@TheBlueMatt TheBlueMatt merged commit ee2f1a9 into lightningdevkit:main Sep 6, 2022
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.

4 participants