-
Notifications
You must be signed in to change notification settings - Fork 166
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
[DKG] improve logging #1162
[DKG] improve logging #1162
Conversation
b.log.Warn().Msgf("DKG broadcast number %d", b.broadcasts+1) | ||
b.log.Warn().Msgf("DKG broadcast number %d with header %d", b.broadcasts+1, data[0]) | ||
} else { | ||
b.log.Info().Msgf("DKG message broadcast with header %d", data[0]) |
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.
Aren't we rather indicating that we're entering a DKG message broadcast phase?
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.
There are already logs for finishing a DKG phase and entering a new one. Here I'm adding a more granular log for every broadcast. It helps me understand what is happening in unhappy paths.
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.
OK, maybe "DKG initial message broadcast" makes sense in the message then?
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 log here is made for every call to broadcast, and not necessarily for the initial broadcast. This includes the initial message, the complaint(s) and their answer(s).
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
b.log.Warn().Msgf("DKG broadcast number %d", b.broadcasts+1) | ||
b.log.Warn().Msgf("DKG broadcast number %d with header %d", b.broadcasts+1, data[0]) | ||
} else { | ||
b.log.Info().Msgf("DKG message broadcast with header %d", data[0]) |
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.
OK, maybe "DKG initial message broadcast" makes sense in the message then?
This is probably a good PR to try using bors with 😁 |
bors merge |
Canceled. |
bors merge |
Improve logging for DKG broadcasted messages.