mirror of
https://github.com/goharbor/harbor
synced 2024-09-20 11:35:36 +00:00
Merge pull request #13213 from reasonerjt/release-2.1.0-patch
add pprof for dumping the stack trace
This commit is contained in:
commit
2cd20077a8
|
@ -17,6 +17,8 @@ package main
|
|||
import (
|
||||
"encoding/gob"
|
||||
"fmt"
|
||||
"net/http"
|
||||
_ "net/http/pprof"
|
||||
"net/url"
|
||||
"os"
|
||||
"os/signal"
|
||||
|
@ -98,6 +100,9 @@ func gracefulShutdown(closing, done chan struct{}) {
|
|||
}
|
||||
|
||||
func main() {
|
||||
go func() {
|
||||
fmt.Println(http.ListenAndServe("localhost:6060", nil))
|
||||
}()
|
||||
beego.BConfig.WebConfig.Session.SessionOn = true
|
||||
beego.BConfig.WebConfig.Session.SessionName = config.SessionCookieName
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user