shared: reinclude debug.Exit() usefulness (#275)

Former-commit-id: 423052bc5858f3e5772b37bb9d0b4a05f9b131ac [formerly 869ca9c92bc215b0583953bb5ab2479927b15256]
Former-commit-id: bfd9353f0234864c9823ad3ee10d152d59af791c
This commit is contained in:
Raul Jordan
2018-07-13 22:35:15 -05:00
committed by GitHub
parent 83569f1342
commit e305d58355
12 changed files with 156 additions and 117 deletions

View File

@@ -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")
}()