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

core: improve logging #1187

Merged
merged 1 commit into from
Sep 28, 2022
Merged

core: improve logging #1187

merged 1 commit into from
Sep 28, 2022

Conversation

corverroos
Copy link
Contributor

Use common prefix for all logging of each component:

  • bcast: "Successfully submitted ..."
  • parsigdb: "Partial signed data ..."
  • qbft: "QBFT ..."
  • sigagg: "Threshold aggregated ..."

Also:

  • Sort attester duty logs by slot
  • Remove noisy fields
  • Remove noisy router debug logs

category: misc
ticket: none

@codecov
Copy link

codecov bot commented Sep 28, 2022

Codecov Report

Base: 53.41% // Head: 53.41% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (4e77067) compared to base (7b9504d).
Patch coverage: 76.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1187   +/-   ##
=======================================
  Coverage   53.41%   53.41%           
=======================================
  Files         133      133           
  Lines       15509    15504    -5     
=======================================
- Hits         8284     8282    -2     
+ Misses       6036     6035    -1     
+ Partials     1189     1187    -2     
Impacted Files Coverage Δ
core/bcast/bcast.go 52.17% <57.14%> (-1.68%) ⬇️
core/consensus/component.go 53.64% <100.00%> (ø)
core/fetcher/fetcher.go 67.44% <100.00%> (ø)
core/scheduler/scheduler.go 73.52% <100.00%> (-0.33%) ⬇️
core/sigagg/sigagg.go 52.38% <100.00%> (ø)
core/validatorapi/validatorapi.go 56.09% <100.00%> (-0.23%) ⬇️
core/qbft/qbft.go 81.11% <0.00%> (-0.86%) ⬇️
app/vmock.go 77.77% <0.00%> (+5.88%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -169,7 +169,7 @@ func (f *Fetcher) fetchAggregatorData(ctx context.Context, slot int64, defSet co

// This validator isn't an aggregator for this slot.
if !res.IsAggregator {
log.Debug(ctx, "Not selected for attester aggregation duty", z.Any("pubkey", pubkey))
log.Debug(ctx, "Attester not selected for aggregation duty", z.Any("pubkey", pubkey))
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe "Validator not selected for aggregation duty"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The validator is an attester at this point.

@@ -188,7 +186,7 @@ func (b Broadcaster) Broadcast(ctx context.Context, duty core.Duty, pubkey core.

err = b.eth2Cl.SubmitAggregateAttestations(ctx, []*eth2p0.SignedAggregateAndProof{&aggAndProof.SignedAggregateAndProof})
if err == nil {
log.Info(ctx, "Attestation aggregation successfully submitted to beacon node",
log.Info(ctx, "Successfully submitted attestation aggregation to beacon node",
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe "Successfully submitted aggregated attestation to beacon node"

Copy link
Contributor Author

@corverroos corverroos Sep 28, 2022

Choose a reason for hiding this comment

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

potato potato 😉

@@ -91,14 +91,14 @@ func (db *MemDB) StoreExternal(ctx context.Context, duty core.Duty, signedSet co
if err != nil {
return err
} else if !ok {
log.Debug(ctx, "Not storing duplicate partial signed data",
z.Any("pubkey", pubkey), z.Int("share_idx", sig.ShareIdx))
log.Debug(ctx, "Partial signed data ignored since duplicate")
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe "Duplicate partial signed data ignored"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm using identical prefixes

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Sep 28, 2022
@obol-bulldozer obol-bulldozer bot merged commit 77f3497 into main Sep 28, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/logs456 branch September 28, 2022 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants