mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
shared: reinclude debug.Exit() usefulness (#275)
Former-commit-id: 423052bc5858f3e5772b37bb9d0b4a05f9b131ac [formerly 869ca9c92bc215b0583953bb5ab2479927b15256] Former-commit-id: bfd9353f0234864c9823ad3ee10d152d59af791c
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"syscall"
|
||||
|
||||
"github.com/prysmaticlabs/geth-sharding/shared"
|
||||
"github.com/prysmaticlabs/geth-sharding/shared/debug"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
@@ -56,6 +57,7 @@ func (b *BeaconNode) Start() {
|
||||
log.Info("Already shutting down, interrupt more to panic.", "times", i-1)
|
||||
}
|
||||
}
|
||||
debug.Exit() // Ensure trace and CPU profile data are flushed.
|
||||
panic("Panic closing the beacon node")
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user