Skip to content
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

chore: reduce unnecessary logs #800

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

ChaoticTempest
Copy link
Member

pulled these out of the multi signature production test I had since I won't have time to get that in before mainnet. This reduces all the unnecessary logging of participants and protocol due to how spammy it is and much the information repeats

@ChaoticTempest ChaoticTempest requested review from volovyks and ppca August 2, 2024 21:49
state = match state.advance(&mut self, contract_state).await {
Ok(state) => {
tracing::debug!("Advance ok. New node state: {}", state);
tracing::debug!("advance ok: {from_state} => {state}");
Copy link
Contributor

Choose a reason for hiding this comment

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

nice.

@@ -327,9 +320,7 @@ impl MpcSignProtocol {

let message_time = Instant::now();
if let Err(err) = state.handle(&self, &mut queue).await {
tracing::info!("protocol unable to handle messages: {err:?}");
tokio::time::sleep(Duration::from_millis(100)).await;
continue;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this intentional?

Copy link
Member Author

Choose a reason for hiding this comment

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

yup, erroring out on messages should have no effect whatsoever so we don't need to do continue

@ChaoticTempest ChaoticTempest merged commit d01771a into develop Aug 5, 2024
3 checks passed
@ChaoticTempest ChaoticTempest deleted the phuong/chore/reduce-unnecessary-logging branch August 5, 2024 10:49
@ChaoticTempest ChaoticTempest mentioned this pull request Aug 7, 2024
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.

3 participants