You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2022/02/24 10:14:29 UTC

[apisix-dashboard] branch master updated: chore: disable debug/pprof interface (#2339)

This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 46c56f4  chore: disable debug/pprof interface (#2339)
46c56f4 is described below

commit 46c56f46622fa49dff32632342ca301a2ca5274d
Author: Yu.Bozhong <y....@foxmail.com>
AuthorDate: Thu Feb 24 18:11:38 2022 +0800

    chore: disable debug/pprof interface (#2339)
    
    Co-authored-by: 阿杰鲁 <im...@gmail.com>
---
 api/internal/route.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/api/internal/route.go b/api/internal/route.go
index 0a2d9c6..5ece4e3 100644
--- a/api/internal/route.go
+++ b/api/internal/route.go
@@ -20,7 +20,7 @@ import (
 	"fmt"
 	"path/filepath"
 
-	"github.com/gin-contrib/pprof"
+	// "github.com/gin-contrib/pprof"
 	"github.com/gin-contrib/static"
 	"github.com/gin-gonic/gin"
 
@@ -93,7 +93,7 @@ func SetUpRouter() *gin.Engine {
 		h.ApplyRoute(r)
 	}
 
-	pprof.Register(r)
+	// pprof.Register(r)
 
 	return r
 }