Skip to content

Post-#2314 Cleanups #3 #2769

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
merged 6 commits into from
Dec 4, 2023

Conversation

TheBlueMatt
Copy link
Collaborator

Various smaller cleanups left for #2314 that didn't fit into the other two PRs

This avoids an important shutdown log being about a channel but not
having the channel metadata.
There are various place where we log something related to a channel
but fail to fill in the channel's counterparty information. This is
somewhat surprising, given channel counterparty information is
always known, but simply is sometimes not readily accessible to LDK
when a log is printed.
@codecov-commenter
Copy link

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (6b43153) 88.64% compared to head (cf0539e) 88.66%.

Files Patch % Lines
lightning/src/ln/channelmanager.rs 89.18% 4 Missing ⚠️
lightning/src/ln/channel.rs 66.66% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2769      +/-   ##
==========================================
+ Coverage   88.64%   88.66%   +0.01%     
==========================================
  Files         115      115              
  Lines       90257    90387     +130     
  Branches    90257    90387     +130     
==========================================
+ Hits        80009    80140     +131     
- Misses       7842     7847       +5     
+ Partials     2406     2400       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@shaavan shaavan left a comment

Choose a reason for hiding this comment

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

ACK

The introduced log enhancement looks good to me. It makes sense to provide a better context of the channel metadata while logging to increase the helpfulness of the log message. The code changes are clean and good to go!

@wpaulino wpaulino merged commit 4d66cce into lightningdevkit:main Dec 4, 2023
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