mirror of
https://github.com/ehang-io/nps.git
synced 2026-11-01 09:12:12 +08:00
pprof configuration support, #382
This commit is contained in:
1 parent
704bba92d1
commit
533dd083fe
9 files changed
+49
No files matched your search
@@ -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