Skip to content

Commit

Permalink
Reduce log levels.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Sep 14, 2024
1 parent ca01448 commit 81d4ee3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import (
)

// ReleaseVersion is the release version for the code.
var ReleaseVersion = "0.3.1"
var ReleaseVersion = "0.3.2"

func main() {
os.Exit(main2())
Expand Down
8 changes: 4 additions & 4 deletions services/bids/standard/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ import (
)

func (s *Service) catchup(ctx context.Context, md *metadata) {
log.Info().Msg("Catching up")
log.Trace().Msg("Catching up")
// We fetch up to, but not including, the current slot.
var wg sync.WaitGroup
for i, provider := range s.receivedBidTracesProviders {
wg.Add(1)
go s.catchupProvider(ctx, &wg, md, provider.Name(), i)
}
wg.Wait()
log.Info().Msg("Caught up")
log.Trace().Msg("Caught up")
}

func (s *Service) catchupProvider(ctx context.Context,
Expand All @@ -52,7 +52,7 @@ func (s *Service) catchupProvider(ctx context.Context,
))
defer span.End()

log.Info().Str("provider", provider).Int("provider_index", providerIndex).Msg("Catching up for provider")
log.Trace().Str("provider", provider).Int("provider_index", providerIndex).Msg("Catching up for provider")
md.mu.RLock()
firstSlot := phase0.Slot(md.LatestSlots[provider] + 1)
md.mu.RUnlock()
Expand All @@ -68,7 +68,7 @@ func (s *Service) catchupProvider(ctx context.Context,
return
}
}
log.Info().Str("provider", provider).Int("provider_index", providerIndex).Msg("Caught up for provider")
log.Trace().Str("provider", provider).Int("provider_index", providerIndex).Msg("Caught up for provider")
}

func (s *Service) catchupProviderSlot(ctx context.Context,
Expand Down

0 comments on commit 81d4ee3

Please sign in to comment.