e823b6ea by Pengfei Xue

add server host:port info when starting app

1 parent b16ef12a
Showing 1 changed file with 5 additions and 0 deletions
...@@ -28,10 +28,14 @@ func (app *App) Run() { ...@@ -28,10 +28,14 @@ func (app *App) Run() {
28 if HttpPort != 0 { 28 if HttpPort != 0 {
29 addr = fmt.Sprintf("%s:%d", HttpAddr, HttpPort) 29 addr = fmt.Sprintf("%s:%d", HttpAddr, HttpPort)
30 } 30 }
31
32 BeeLogger.Info("Runing on %s", addr)
33
31 var ( 34 var (
32 err error 35 err error
33 l net.Listener 36 l net.Listener
34 ) 37 )
38
35 if UseFcgi { 39 if UseFcgi {
36 if HttpPort == 0 { 40 if HttpPort == 0 {
37 l, err = net.Listen("unix", addr) 41 l, err = net.Listen("unix", addr)
...@@ -72,6 +76,7 @@ func (app *App) Run() { ...@@ -72,6 +76,7 @@ func (app *App) Run() {
72 } 76 }
73 } 77 }
74 } 78 }
79
75 if err != nil { 80 if err != nil {
76 BeeLogger.Critical("ListenAndServe: ", err) 81 BeeLogger.Critical("ListenAndServe: ", err)
77 time.Sleep(100 * time.Microsecond) 82 time.Sleep(100 * time.Microsecond)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!