Skip to content

Commit

Permalink
Add more logs on shutdown (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbuchwald authored Mar 24, 2023
1 parent 6da5172 commit 922fc76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,12 @@ func (s *Ethereum) Stop() error {

// Clean shutdown marker as the last thing before closing db
s.shutdownTracker.Stop()
log.Info("Stopped shutdownTracker")

s.chainDb.Close()
log.Info("Closed chaindb")
s.eventMux.Stop()
log.Info("Stopped EventMux")
return nil
}

Expand Down
2 changes: 2 additions & 0 deletions plugin/evm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,9 @@ func (vm *VM) Shutdown(context.Context) error {
}
close(vm.shutdownChan)
vm.eth.Stop()
log.Info("Ethereum backend stop completed")
vm.shutdownWg.Wait()
log.Info("Subnet-EVM Shutdown completed")
return nil
}

Expand Down

0 comments on commit 922fc76

Please sign in to comment.