aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-02-28 08:04:54 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-02-28 08:04:54 +0800
commitea0517b5396efc7bd47f820ec0263f68f76f29a4 (patch)
treeaa9690677c8f4845699ad655bafaed5d23a04665
parentf6e821fd335911c26d515094ac0af4fa69526279 (diff)
downloadgo-tangerine-ea0517b5396efc7bd47f820ec0263f68f76f29a4.tar
go-tangerine-ea0517b5396efc7bd47f820ec0263f68f76f29a4.tar.gz
go-tangerine-ea0517b5396efc7bd47f820ec0263f68f76f29a4.tar.bz2
go-tangerine-ea0517b5396efc7bd47f820ec0263f68f76f29a4.tar.lz
go-tangerine-ea0517b5396efc7bd47f820ec0263f68f76f29a4.tar.xz
go-tangerine-ea0517b5396efc7bd47f820ec0263f68f76f29a4.tar.zst
go-tangerine-ea0517b5396efc7bd47f820ec0263f68f76f29a4.zip
Report RPC listening address in logs
-rw-r--r--rpc/http/server.go4
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)