Skip to content

Commit

Permalink
[improvement] logservice: add some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
volgariver6 committed Dec 11, 2024
1 parent f1acf1d commit 3e2ff75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/logservice/service_bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,17 @@ func (s *Service) BootstrapHAKeeper(ctx context.Context, cfg Config) error {
return err
}
}
} else {
s.runtime.SubLogger(runtime.SystemInit).Info("backup is nil")
}
for i := 0; i < checkBootstrapCycles; i++ {
select {
case <-ctx.Done():
s.runtime.SubLogger(runtime.SystemInit).Error("context error", zap.Error(ctx.Err()))
return nil
default:
}
s.runtime.SubLogger(runtime.SystemInit).Info("before initial cluster info")
if err := s.store.setInitialClusterInfo(
numOfLogShards,
numOfTNShards,
Expand Down

0 comments on commit 3e2ff75

Please sign in to comment.