diff options
Diffstat (limited to 'gobgpd')
-rw-r--r-- | gobgpd/main.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go index 03912546..fd657c3f 100644 --- a/gobgpd/main.go +++ b/gobgpd/main.go @@ -24,6 +24,8 @@ import ( "github.com/osrg/gobgp/server" "io/ioutil" "log/syslog" + "net/http" + _ "net/http/pprof" "os" "os/signal" "runtime" @@ -59,6 +61,10 @@ func main() { runtime.GOMAXPROCS(opts.CPUs) } + go func() { + log.Println(http.ListenAndServe("localhost:6060", nil)) + }() + switch opts.LogLevel { case "debug": log.SetLevel(log.DebugLevel) |