mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
t7
This commit is contained in:
parent
7efc6fb012
commit
1029e819f7
2 changed files with 3 additions and 3 deletions
|
|
@ -272,8 +272,6 @@ func geth(ctx *cli.Context) error {
|
|||
return fmt.Errorf("invalid command: %q", args[0])
|
||||
}
|
||||
|
||||
log2.InitOutputFile(ctx.String(utils.TimingOutputFlag.Name))
|
||||
|
||||
node := makeFullNode(ctx)
|
||||
startNode(ctx, node)
|
||||
node.Wait()
|
||||
|
|
@ -284,6 +282,9 @@ func geth(ctx *cli.Context) error {
|
|||
// it unlocks any requested accounts, and starts the RPC/IPC interfaces and the
|
||||
// miner.
|
||||
func startNode(ctx *cli.Context, stack *node.Node) {
|
||||
//timing
|
||||
log2.InitOutputFile(ctx.String(utils.TimingOutputFlag.Name))
|
||||
|
||||
debug.Memsize.Add("node", stack)
|
||||
|
||||
// Start up the node itself
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ func InitOutputFile(outputFile string) {
|
|||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, "Fail to create log file for timing.")
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue