diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-28 08:04:54 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-28 08:04:54 +0800 |
commit | ea0517b5396efc7bd47f820ec0263f68f76f29a4 (patch) | |
tree | aa9690677c8f4845699ad655bafaed5d23a04665 /rpc/http/server.go | |
parent | f6e821fd335911c26d515094ac0af4fa69526279 (diff) | |
download | go-tangerine-ea0517b5396efc7bd47f820ec0263f68f76f29a4.tar.gz go-tangerine-ea0517b5396efc7bd47f820ec0263f68f76f29a4.tar.zst go-tangerine-ea0517b5396efc7bd47f820ec0263f68f76f29a4.zip |
Report RPC listening address in logs
Diffstat (limited to 'rpc/http/server.go')
-rw-r--r-- | rpc/http/server.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rpc/http/server.go b/rpc/http/server.go index 063c333d0..452b7c9af 100644 --- a/rpc/http/server.go +++ b/rpc/http/server.go @@ -41,6 +41,7 @@ func NewRpcHttpServer(pipe *xeth.XEth, address string, port int) (*RpcHttpServer quit: make(chan bool), pipe: pipe, port: port, + addr: address, }, nil } @@ -49,6 +50,7 @@ type RpcHttpServer struct { listener net.Listener pipe *xeth.XEth port int + addr string } func (s *RpcHttpServer) exitHandler() { @@ -69,7 +71,7 @@ func (s *RpcHttpServer) Stop() { } func (s *RpcHttpServer) Start() { - rpchttplogger.Infof("Starting RPC-HTTP server on port %d", s.port) + rpchttplogger.Infof("Starting RPC-HTTP server on %s:%d", s.addr, s.port) go s.exitHandler() api := rpc.NewEthereumApi(s.pipe) |