mirror of https://github.com/ehang-io/nps
nps test bug
parent
0711b9befb
commit
01fca7d568
|
@ -13,7 +13,6 @@ import (
|
||||||
_ "github.com/cnlh/nps/web/routers"
|
_ "github.com/cnlh/nps/web/routers"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -24,6 +23,7 @@ var (
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
beego.LoadAppConfig("ini", filepath.Join(common.GetRunPath(), "conf", "nps.conf"))
|
||||||
if len(os.Args) > 1 {
|
if len(os.Args) > 1 {
|
||||||
switch os.Args[1] {
|
switch os.Args[1] {
|
||||||
case "test":
|
case "test":
|
||||||
|
@ -37,7 +37,6 @@ func main() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
beego.LoadAppConfig("ini", filepath.Join(common.GetRunPath(), "conf", "nps.conf"))
|
|
||||||
if level = beego.AppConfig.String("logLevel"); level == "" {
|
if level = beego.AppConfig.String("logLevel"); level == "" {
|
||||||
level = "7"
|
level = "7"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue