提交 e823b6ea 编写于 作者: P Pengfei Xue

add server host:port info when starting app

上级 b16ef12a
......@@ -28,10 +28,14 @@ func (app *App) Run() {
if HttpPort != 0 {
addr = fmt.Sprintf("%s:%d", HttpAddr, HttpPort)
}
BeeLogger.Info("Runing on %s", addr)
var (
err error
l net.Listener
)
if UseFcgi {
if HttpPort == 0 {
l, err = net.Listen("unix", addr)
......@@ -72,6 +76,7 @@ func (app *App) Run() {
}
}
}
if err != nil {
BeeLogger.Critical("ListenAndServe: ", err)
time.Sleep(100 * time.Microsecond)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册