-
Notifications
You must be signed in to change notification settings - Fork 655
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
Use enums in channel handshake log #3384
Conversation
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.
LGTM, thanks!
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.
Thanks for all your contributions lately, @expertdicer!
I just realised that we can make the same improvement in the log statements in connection handshake. I opened this issue just now; if you're interested to take it, please comment and I will assign it to you. :)
yes please. Ty |
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.
Thanks @expertdicer! I think the WriteOpenAckChannel
log is incorrect.
If you're picking up #3385 feel free to make a quick change in that :)
Thanks for the PR 🙏
@@ -204,7 +204,7 @@ func (k Keeper) WriteOpenTryChannel( | |||
|
|||
k.SetChannel(ctx, portID, channelID, channel) | |||
|
|||
k.Logger(ctx).Info("channel state updated", "port-id", portID, "channel-id", channelID, "previous-state", "NONE", "new-state", "TRYOPEN") | |||
k.Logger(ctx).Info("channel state updated", "port-id", portID, "channel-id", channelID, "previous-state", types.UNINITIALIZED.String(), "new-state", types.TRYOPEN.String()) |
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.
In the case of crossing hellos, it may be possible that previous sate could be UNINITIALIZED
or INIT
.
But I think support for crossing hellos in opening handshakes was removed at some point 🤔
Description
closes: #3335
Commit Message / Changelog Entry
nit: Use enums in channel handshake log
see the guidelines for commit messages. (view raw markdown for examples)
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
).godoc
comments.Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.