mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-03 13:10:42 +00:00
bug
This commit is contained in:
parent
9f03c2f6eb
commit
f2329f72f6
@ -12,8 +12,6 @@ import (
|
|||||||
"github.com/cnlh/nps/vender/github.com/astaxie/beego"
|
"github.com/cnlh/nps/vender/github.com/astaxie/beego"
|
||||||
_ "github.com/cnlh/nps/web/routers"
|
_ "github.com/cnlh/nps/web/routers"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
|
||||||
_ "net/http/pprof"
|
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
)
|
)
|
||||||
@ -40,9 +38,6 @@ func main() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
go func() {
|
|
||||||
http.ListenAndServe("0.0.0.0:8899", nil)
|
|
||||||
}()
|
|
||||||
if *logType == "stdout" {
|
if *logType == "stdout" {
|
||||||
lg.InitLogFile("nps", true, common.GetLogPath())
|
lg.InitLogFile("nps", true, common.GetLogPath())
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user