raise log level for http/ipc server init

This commit is contained in:
Ian Norden 2020-08-23 15:00:11 -05:00
parent f3ca915cb3
commit 3c5042e54e
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,7 @@
## eth-statediff-service ## eth-statediff-service
[![Go Report Card](https://goreportcard.com/badge/github.com/vulcanize/eth-statediff-service)](https://goreportcard.com/report/github.com/vulcanize/eth-statediff-service)
>> standalone statediffing service ontop of leveldb >> standalone statediffing service ontop of leveldb
Purpose: Purpose:

View File

@ -82,7 +82,7 @@ func serve() {
if err := startServers(statediffService); err != nil { if err := startServers(statediffService); err != nil {
logWithCommand.Fatal(err) logWithCommand.Fatal(err)
} }
logWithCommand.Info("rpc server(s) successfully spun up; awaiting requests") logWithCommand.Info("rpc servers successfully spun up; awaiting requests")
// clean shutdown // clean shutdown
shutdown := make(chan os.Signal) shutdown := make(chan os.Signal)
@ -116,14 +116,14 @@ func startServers(serv sd.IService) error {
logWithCommand.Fatal("need an ipc path and/or an http path") logWithCommand.Fatal("need an ipc path and/or an http path")
} }
if ipcPath != "" { if ipcPath != "" {
logWithCommand.Debug("starting up IPC server") logWithCommand.Info("starting up IPC server")
_, _, err := rpc.StartIPCEndpoint(ipcPath, serv.APIs()) _, _, err := rpc.StartIPCEndpoint(ipcPath, serv.APIs())
if err != nil { if err != nil {
return err return err
} }
} }
if httpPath != "" { if httpPath != "" {
logWithCommand.Debug("starting up HTTP server") logWithCommand.Info("starting up HTTP server")
if _, _, err := rpc.StartHTTPEndpoint(httpPath, serv.APIs(), []string{statediff.APIName}, nil, nil, rpc.HTTPTimeouts{}); err != nil { if _, _, err := rpc.StartHTTPEndpoint(httpPath, serv.APIs(), []string{statediff.APIName}, nil, nil, rpc.HTTPTimeouts{}); err != nil {
return err return err
} }