@@ -63,7 +63,7 @@ var snapshotCommand = cli.Command{
6363 Name : "snapshots" ,
6464 Usage : `Managing snapshots (historical data partitions)` ,
6565 Before : func (context * cli.Context ) error {
66- _ , _ , err := debug .Setup (context , true /* rootLogger */ )
66+ _ , _ , _ , err := debug .Setup (context , true /* rootLogger */ )
6767 if err != nil {
6868 return err
6969 }
@@ -197,7 +197,7 @@ var (
197197)
198198
199199func doIntegrity (cliCtx * cli.Context ) error {
200- logger , _ , err := debug .Setup (cliCtx , true /* root logger */ )
200+ logger , _ , _ , err := debug .Setup (cliCtx , true /* root logger */ )
201201 if err != nil {
202202 return err
203203 }
@@ -268,7 +268,7 @@ func doDiff(cliCtx *cli.Context) error {
268268}
269269
270270func doDecompressSpeed (cliCtx * cli.Context ) error {
271- logger , _ , err := debug .Setup (cliCtx , true /* rootLogger */ )
271+ logger , _ , _ , err := debug .Setup (cliCtx , true /* rootLogger */ )
272272 if err != nil {
273273 return err
274274 }
@@ -310,7 +310,7 @@ func doDecompressSpeed(cliCtx *cli.Context) error {
310310func doRam (cliCtx * cli.Context ) error {
311311 var logger log.Logger
312312 var err error
313- if logger , _ , err = debug .Setup (cliCtx , true /* rootLogger */ ); err != nil {
313+ if logger , _ , _ , err = debug .Setup (cliCtx , true /* rootLogger */ ); err != nil {
314314 return err
315315 }
316316 defer logger .Info ("Done" )
@@ -334,7 +334,7 @@ func doRam(cliCtx *cli.Context) error {
334334}
335335
336336func doIndicesCommand (cliCtx * cli.Context ) error {
337- logger , _ , err := debug .Setup (cliCtx , true /* rootLogger */ )
337+ logger , _ , _ , err := debug .Setup (cliCtx , true /* rootLogger */ )
338338 if err != nil {
339339 return err
340340 }
@@ -433,7 +433,7 @@ func openSnaps(ctx context.Context, cfg ethconfig.BlocksFreezing, dirs datadir.D
433433func doUncompress (cliCtx * cli.Context ) error {
434434 var logger log.Logger
435435 var err error
436- if logger , _ , err = debug .Setup (cliCtx , true /* rootLogger */ ); err != nil {
436+ if logger , _ , _ , err = debug .Setup (cliCtx , true /* rootLogger */ ); err != nil {
437437 return err
438438 }
439439 ctx := cliCtx .Context
@@ -486,7 +486,7 @@ func doUncompress(cliCtx *cli.Context) error {
486486func doCompress (cliCtx * cli.Context ) error {
487487 var err error
488488 var logger log.Logger
489- if logger , _ , err = debug .Setup (cliCtx , true /* rootLogger */ ); err != nil {
489+ if logger , _ , _ , err = debug .Setup (cliCtx , true /* rootLogger */ ); err != nil {
490490 return err
491491 }
492492 ctx := cliCtx .Context
@@ -536,7 +536,7 @@ func doCompress(cliCtx *cli.Context) error {
536536func doRetireCommand (cliCtx * cli.Context ) error {
537537 var logger log.Logger
538538 var err error
539- if logger , _ , err = debug .Setup (cliCtx , true /* rootLogger */ ); err != nil {
539+ if logger , _ , _ , err = debug .Setup (cliCtx , true /* rootLogger */ ); err != nil {
540540 return err
541541 }
542542 defer logger .Info ("Done" )
@@ -685,8 +685,9 @@ func doUploaderCommand(cliCtx *cli.Context) error {
685685 var logger log.Logger
686686 var err error
687687 var metricsMux * http.ServeMux
688+ var pprofMux * http.ServeMux
688689
689- if logger , metricsMux , err = debug .Setup (cliCtx , true /* root logger */ ); err != nil {
690+ if logger , metricsMux , pprofMux , err = debug .Setup (cliCtx , true /* root logger */ ); err != nil {
690691 return err
691692 }
692693
@@ -709,7 +710,7 @@ func doUploaderCommand(cliCtx *cli.Context) error {
709710 return err
710711 }
711712
712- diagnostics .Setup (cliCtx , ethNode , metricsMux )
713+ diagnostics .Setup (cliCtx , ethNode , metricsMux , pprofMux )
713714
714715 err = ethNode .Serve ()
715716 if err != nil {
0 commit comments