-
Notifications
You must be signed in to change notification settings - Fork 421
Add struct-level logging to OutboundPayments #4082
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
Conversation
👋 Thanks for assigning @tnull as a reviewer! |
b8558c7
to
cc63fe4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mind adding a proper description to the commit?
👋 The first review has been submitted! Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4082 +/- ##
==========================================
- Coverage 88.60% 88.59% -0.02%
==========================================
Files 176 176
Lines 132086 132070 -16
Branches 132086 132070 -16
==========================================
- Hits 117041 117006 -35
- Misses 12376 12397 +21
+ Partials 2669 2667 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Previously, OutboundPayments methods required borrowed logger arguments since Logger lacked a Clone bound. This prevented logging in all desired places, limiting trace statements for debugging. This change initializes OutboundPayments with a cloned Logger, simplifying method signatures and improving logging flexibility.
cc63fe4
to
5fc6282
Compare
Added commit msg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simple enough - landing this!
It seems that because there wasn't a
Clone
bound on theLogger
passed toChannelManager
, many of the methods ofOutboundPayments
saw a borrowedlogger
argument added, and still it wasn't possible to log everywhere. In debugging async payments, more trace statements would have been helpful, but they couldn't simply be added.This PR initializes
OutboundPayments
with aLogger
clone, and consequently simplifies method signatures.The module is also in need of rustfmt, but won't do that now to avoid conflict with async payments.