Skip to content

Commit

Permalink
Linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Aug 22, 2023
1 parent 5bd9427 commit b028a77
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
10 changes: 4 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,13 +730,11 @@ func logModules() {
if ok {
log.Trace().Str("path", buildInfo.Path).Msg("Main package")
for _, dep := range buildInfo.Deps {
log := log.Trace()
if dep.Replace == nil {
log = log.Str("path", dep.Path).Str("version", dep.Version)
} else {
log = log.Str("path", dep.Replace.Path).Str("version", dep.Replace.Version)
path := dep.Path
if dep.Replace != nil {
path = dep.Replace.Path
}
log.Msg("Dependency")
log.Trace().Str("path", path).Str("version", dep.Version).Msg("Dependency")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion services/beaconblockproposer/standard/propose.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ func (*Service) unblindBlock(ctx context.Context,
if e := log.Trace(); e.Enabled() {
data, err := json.Marshal(signedBlock)
if err == nil {
log.Trace().RawJSON("signed_block", data).Msg("Recomposed block to submit")
e.RawJSON("signed_block", data).Msg("Recomposed block to submit")
}
}
return signedBlock, nil
Expand Down
3 changes: 2 additions & 1 deletion services/controller/standard/attester.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ func (s *Service) scheduleAttestations(ctx context.Context,
log.Trace().Dur("elapsed", time.Since(started)).Int("duties", len(duties)).Msg("Merged attester duties")

if e := log.Trace(); e.Enabled() {
e.Msg("Received attester duties")
for _, duty := range duties {
log.Trace().
Uint64("slot", uint64(duty.Slot())).
Strs("duties", duty.Tuples()).
Msg("Received attester duties")
Msg("Attester duties for slot")
}
}

Expand Down

0 comments on commit b028a77

Please sign in to comment.