diff --git a/main.go b/main.go index 4a32524a..a44e24d7 100644 --- a/main.go +++ b/main.go @@ -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") } } } diff --git a/services/beaconblockproposer/standard/propose.go b/services/beaconblockproposer/standard/propose.go index 25a1ced8..c458cfa3 100644 --- a/services/beaconblockproposer/standard/propose.go +++ b/services/beaconblockproposer/standard/propose.go @@ -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 diff --git a/services/controller/standard/attester.go b/services/controller/standard/attester.go index ba53e192..36ccc8a7 100644 --- a/services/controller/standard/attester.go +++ b/services/controller/standard/attester.go @@ -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") } }