Pruning old states: Use a warning level log instead of fatal (#4707)

* Use a warning level log instead of fatal
This commit is contained in:
Preston Van Loon 2020-02-01 12:51:20 -08:00 committed by GitHub
parent c2fbb40909
commit 2a79c572a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,7 +170,7 @@ func (s *Service) Start() {
if finalizedCheckpoint.Epoch > 1 {
if err := s.pruneGarbageState(ctx, helpers.StartSlot(finalizedCheckpoint.Epoch)-params.BeaconConfig().SlotsPerEpoch); err != nil {
log.Fatalf("Could not prune garbaged state: %v", err)
log.WithError(err).Warn("Could not prune old states")
}
}