aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-01-28 02:26:30 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-01-28 02:29:08 +0800
commit2f0166b94583cc17fab28f3e4f1214f220d6c4a3 (patch)
tree03295638bf03a3587a268157cef064bbd9159efc /rpc
parentd790229a33b1f3e6256ca6916be17a0cc3663076 (diff)
downloadgo-tangerine-2f0166b94583cc17fab28f3e4f1214f220d6c4a3.tar
go-tangerine-2f0166b94583cc17fab28f3e4f1214f220d6c4a3.tar.gz
go-tangerine-2f0166b94583cc17fab28f3e4f1214f220d6c4a3.tar.bz2
go-tangerine-2f0166b94583cc17fab28f3e4f1214f220d6c4a3.tar.lz
go-tangerine-2f0166b94583cc17fab28f3e4f1214f220d6c4a3.tar.xz
go-tangerine-2f0166b94583cc17fab28f3e4f1214f220d6c4a3.tar.zst
go-tangerine-2f0166b94583cc17fab28f3e4f1214f220d6c4a3.zip
Indicate port in startup log message
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 a8b116076..631d47110 100644
--- a/rpc/http/server.go
+++ b/rpc/http/server.go
@@ -40,6 +40,7 @@ func NewRpcHttpServer(pipe *xeth.JSXEth, port int) (*RpcHttpServer, error) {
listener: l,
quit: make(chan bool),
pipe: pipe,
+ port: port,
}, nil
}
@@ -47,6 +48,7 @@ type RpcHttpServer struct {
quit chan bool
listener net.Listener
pipe *xeth.JSXEth
+ port int
}
func (s *RpcHttpServer) exitHandler() {
@@ -67,7 +69,7 @@ func (s *RpcHttpServer) Stop() {
}
func (s *RpcHttpServer) Start() {
- rpchttplogger.Infoln("Starting RPC-HTTP server")
+ rpchttplogger.Infof("Starting RPC-HTTP server on port %d", s.port)
go s.exitHandler()
api := rpc.NewEthereumApi(s.pipe)