Commit 2f0166b9 authored by Taylor Gerring's avatar Taylor Gerring

Indicate port in startup log message

parent d790229a
...@@ -40,6 +40,7 @@ func NewRpcHttpServer(pipe *xeth.JSXEth, port int) (*RpcHttpServer, error) { ...@@ -40,6 +40,7 @@ func NewRpcHttpServer(pipe *xeth.JSXEth, port int) (*RpcHttpServer, error) {
listener: l, listener: l,
quit: make(chan bool), quit: make(chan bool),
pipe: pipe, pipe: pipe,
port: port,
}, nil }, nil
} }
...@@ -47,6 +48,7 @@ type RpcHttpServer struct { ...@@ -47,6 +48,7 @@ type RpcHttpServer struct {
quit chan bool quit chan bool
listener net.Listener listener net.Listener
pipe *xeth.JSXEth pipe *xeth.JSXEth
port int
} }
func (s *RpcHttpServer) exitHandler() { func (s *RpcHttpServer) exitHandler() {
...@@ -67,7 +69,7 @@ func (s *RpcHttpServer) Stop() { ...@@ -67,7 +69,7 @@ func (s *RpcHttpServer) Stop() {
} }
func (s *RpcHttpServer) Start() { func (s *RpcHttpServer) Start() {
rpchttplogger.Infoln("Starting RPC-HTTP server") rpchttplogger.Infof("Starting RPC-HTTP server on port %d", s.port)
go s.exitHandler() go s.exitHandler()
api := rpc.NewEthereumApi(s.pipe) api := rpc.NewEthereumApi(s.pipe)
......
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