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 <[email protected]>
AuthorDate: Thu Feb 24 18:11:38 2022 +0800

    chore: disable debug/pprof interface (#2339)
    
    Co-authored-by: 阿杰鲁 <[email protected]>
---
 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
 }

Reply via email to