aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
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 /rpc
parentf6e821fd335911c26d515094ac0af4fa69526279 (diff)
downloaddexon-ea0517b5396efc7bd47f820ec0263f68f76f29a4.tar
dexon-ea0517b5396efc7bd47f820ec0263f68f76f29a4.tar.gz
dexon-ea0517b5396efc7bd47f820ec0263f68f76f29a4.tar.bz2
dexon-ea0517b5396efc7bd47f820ec0263f68f76f29a4.tar.lz
dexon-ea0517b5396efc7bd47f820ec0263f68f76f29a4.tar.xz
dexon-ea0517b5396efc7bd47f820ec0263f68f76f29a4.tar.zst
dexon-ea0517b5396efc7bd47f820ec0263f68f76f29a4.zip
Report RPC listening address in logs
Diffstat (limited to 'rpc')
-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)