-
Notifications
You must be signed in to change notification settings - Fork 366
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
Log the errors before we return them from ChannelManager::do_accept_inbound_channel #2807
Log the errors before we return them from ChannelManager::do_accept_inbound_channel #2807
Conversation
e97bfc2
to
66c9b68
Compare
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #2807 +/- ##
==========================================
- Coverage 88.45% 88.42% -0.04%
==========================================
Files 114 114
Lines 91814 91962 +148
Branches 91814 91962 +148
==========================================
+ Hits 81218 81313 +95
- Misses 8103 8136 +33
- Partials 2493 2513 +20 ☔ View full report in Codecov by Sentry. |
When you address the above comment, feel free to squash, but please update the commit message to be no longer than ~70 chars in the title, and follow it with a small body explaining why we're doing this and what we're doing, with each line wrapped to no longer than ~70 chars. |
I've added EDIT: Squash ✅ |
2d92b55
to
935145a
Compare
This refactor ensures that all API errors in do_accept_inbound_channel are logged before they are returned.
935145a
to
dbe69ba
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.
The code looks great!
However we can still improve the commit subject a little.
Using an imperative tone in the subject is considered to be the best practice.
Also, you can refer to this, which will help you educate yourself on best practices in commit writing.
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.
Indeed, the commit message could include a bit more detail, but its probably not worth delaying the PR further to wait on it, its fine enough :)
There's also no need to wait on a third reviewer here, this doesn't change the logic flow anywhere or the API, only adds logging.
This closes #2754