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

small improvements to logs #14405

Merged
merged 7 commits into from
Oct 29, 2024
Merged

small improvements to logs #14405

merged 7 commits into from
Oct 29, 2024

Conversation

james-prysm
Copy link
Contributor

@james-prysm james-prysm commented Aug 30, 2024

What type of PR is this?

Other

What does this PR do? Why is it needed?

removes some duplicate logs, or moves them to be less redudnant

Which issues(s) does this PR fix?

Fixes #

Other notes for review

Acknowledgements

  • I have read CONTRIBUTING.md.
  • I have made an appropriate entry to CHANGELOG.md.
  • I have added a description to this PR with sufficient context for reviewers to understand this PR.

@james-prysm james-prysm added the Cleanup Code health! label Aug 30, 2024
@james-prysm james-prysm changed the title removing redundant log, and poorly worded log small improvements to logs Aug 30, 2024
@james-prysm james-prysm added the UX cosmetic / user experience related label Aug 30, 2024
@@ -292,9 +292,6 @@ func ConstructDialOptions(
transportSecurity = grpc.WithTransportCredentials(creds)
} else {
transportSecurity = grpc.WithInsecure()
log.Warn("You are using an insecure gRPC connection. If you are running your beacon node and " +
Copy link
Contributor Author

Choose a reason for hiding this comment

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

redundant log

Copy link
Contributor Author

Choose a reason for hiding this comment

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

putting it back in, fails test + was supposed to do some more setup

@@ -159,6 +155,10 @@ func (psl *settingsLoader) Load(cliCtx *cli.Context) (*proposer.Settings, error)
if psl.options.builderConfig != nil {
defaultConfig.Builder = psl.options.builderConfig.ToConsensus()
}
if psl.existsInDB && len(psl.loadMethods) == 1 {
// only log the below if default flag is the only load method
Copy link
Contributor Author

Choose a reason for hiding this comment

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

log is a bit noisy, mostly debugging purposes

@@ -1327,6 +1327,11 @@ func (v *validator) buildSignedRegReqs(
if v.genesisTime > uint64(time.Now().UTC().Unix()) {
return signedValRegRequests
}

if v.ProposerSettings().DefaultConfig != nil && v.ProposerSettings().DefaultConfig.FeeRecipientConfig == nil && v.ProposerSettings().DefaultConfig.BuilderConfig != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

printing too much in loop

@james-prysm james-prysm marked this pull request as ready for review October 29, 2024 19:33
@james-prysm james-prysm requested a review from a team as a code owner October 29, 2024 19:33
terencechain
terencechain previously approved these changes Oct 29, 2024
@james-prysm james-prysm added this pull request to the merge queue Oct 29, 2024
Merged via the queue into develop with commit 0605270 Oct 29, 2024
18 checks passed
@james-prysm james-prysm deleted the small-log-updates branch October 29, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup Code health! UX cosmetic / user experience related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants