Commit fbd1c3f8 authored by astaxie's avatar astaxie

Merge pull request #318 from pengfei-xue/devel

add server host:port info when starting app
parents b16ef12a e823b6ea
......@@ -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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment