This commit is contained in:
Sad Pencil 2019-02-23 06:44:32 +08:00
parent 7efc6fb012
commit 1029e819f7
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

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