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

Reduce noisy tendermint logs #163

Merged
merged 2 commits into from
Oct 12, 2023
Merged

Reduce noisy tendermint logs #163

merged 2 commits into from
Oct 12, 2023

Conversation

yzang2019
Copy link
Contributor

Describe your changes and provide context

This change will help to reduce the noisy logs such as
image

Testing performed to validate your change

@@ -2003,7 +2003,7 @@ func (cs *State) enterCommit(ctx context.Context, height int64, commitRound int3
logger := cs.logger.With("height", height, "commit_round", commitRound)

if cs.roundState.Height() != height || cstypes.RoundStepCommit <= cs.roundState.Step() {
logger.Info(
logger.Debug(
Copy link
Contributor

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, check again?

@yzang2019 yzang2019 requested a review from philipsu522 October 11, 2023 23:32
@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Merging #163 (b4c57e8) into main (cc6c850) will increase coverage by 0.01%.
The diff coverage is 81.81%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #163      +/-   ##
==========================================
+ Coverage   58.98%   58.99%   +0.01%     
==========================================
  Files         281      281              
  Lines       38858    38858              
==========================================
+ Hits        22922    22926       +4     
- Misses      14145    14147       +2     
+ Partials     1791     1785       -6     
Files Coverage Δ
internal/consensus/state.go 70.45% <81.81%> (+0.14%) ⬆️

... and 16 files with indirect coverage changes

Copy link
Collaborator

@codchen codchen left a comment

Choose a reason for hiding this comment

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

just a q: after this change will there be any log left that can indicate consensus is progressing?

@yzang2019
Copy link
Contributor Author

just a q: after this change will there be any log left that can indicate consensus is progressing?

Yeah, there'll still be logs around commit info such as:
image

@yzang2019 yzang2019 merged commit 962ce07 into main Oct 12, 2023
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