Browse Source

write listen error to log

pull/981/head
Darien Raymond 7 years ago
parent
commit
3ff570a050
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 7
      transport/internet/http/hub.go

7
transport/internet/http/hub.go

@ -102,7 +102,12 @@ func Listen(ctx context.Context, address net.Address, port net.Port, handler int
} }
listener.server = server listener.server = server
go server.ListenAndServeTLS("", "") go func() {
err := server.ListenAndServeTLS("", "")
if err != nil {
newError("stoping serving TLS").Base(err).WriteToLog()
}
}()
return listener, nil return listener, nil
} }

Loading…
Cancel
Save