diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 98c2e9ca84..7cfa3e8adf 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -232,12 +232,8 @@ func init() { app.Flags = append(app.Flags, metricsFlags...) app.Before = func(ctx *cli.Context) error { - if err := debug.Setup(ctx, ""); err != nil { - return err - } - return nil + return debug.Setup(ctx, "") } - app.After = func(ctx *cli.Context) error { debug.Exit() console.Stdin.Close() // Resets terminal mode.