mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-04 21:56:53 +00:00
pprof configuration support, #382
This commit is contained in:
@@ -59,6 +59,7 @@ func main() {
|
||||
if err := beego.LoadAppConfig("ini", filepath.Join(common.GetRunPath(), "conf", "nps.conf")); err != nil {
|
||||
log.Fatalln("load config file error", err.Error())
|
||||
}
|
||||
common.InitPProfFromFile()
|
||||
if level = beego.AppConfig.String("log_level"); level == "" {
|
||||
level = "7"
|
||||
}
|
||||
|
Reference in New Issue
Block a user