From 3c5042e54e8c75c086550bd73307b79c4a0feb06 Mon Sep 17 00:00:00 2001 From: Ian Norden Date: Sun, 23 Aug 2020 15:00:11 -0500 Subject: [PATCH] raise log level for http/ipc server init --- README.md | 3 +++ cmd/serve.go | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a474f41..5b8682c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ ## 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 Purpose: diff --git a/cmd/serve.go b/cmd/serve.go index d1cb84f..30c244c 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -82,7 +82,7 @@ func serve() { if err := startServers(statediffService); err != nil { logWithCommand.Fatal(err) } - logWithCommand.Info("rpc server(s) successfully spun up; awaiting requests") + logWithCommand.Info("rpc servers successfully spun up; awaiting requests") // clean shutdown 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") } if ipcPath != "" { - logWithCommand.Debug("starting up IPC server") + logWithCommand.Info("starting up IPC server") _, _, err := rpc.StartIPCEndpoint(ipcPath, serv.APIs()) if err != nil { return err } } 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 { return err }