aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 02:21:42 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 02:21:42 +0800
commit1f2de6ecd546a094c4bead52c88963b74ed6b66a (patch)
tree854fcef5f720c93afc452b380cbed350b69d1201 /rpc
parentd670c861d7b7acb9983fdad065b2b67b0d598c45 (diff)
downloaddexon-1f2de6ecd546a094c4bead52c88963b74ed6b66a.tar
dexon-1f2de6ecd546a094c4bead52c88963b74ed6b66a.tar.gz
dexon-1f2de6ecd546a094c4bead52c88963b74ed6b66a.tar.bz2
dexon-1f2de6ecd546a094c4bead52c88963b74ed6b66a.tar.lz
dexon-1f2de6ecd546a094c4bead52c88963b74ed6b66a.tar.xz
dexon-1f2de6ecd546a094c4bead52c88963b74ed6b66a.tar.zst
dexon-1f2de6ecd546a094c4bead52c88963b74ed6b66a.zip
Remove extra logger
Diffstat (limited to 'rpc')
-rw-r--r--rpc/http.go4
-rw-r--r--rpc/util.go3
2 files changed, 2 insertions, 5 deletions
diff --git a/rpc/http.go b/rpc/http.go
index 5f2445e6c..bf281efc3 100644
--- a/rpc/http.go
+++ b/rpc/http.go
@@ -10,7 +10,7 @@ import (
"github.com/ethereum/go-ethereum/xeth"
)
-var rpchttplogger = logger.NewLogger("RPC-HTTP")
+var rpclogger = logger.NewLogger("RPC")
const (
jsonrpcver = "2.0"
@@ -84,7 +84,7 @@ func RpcResponse(api *EthereumApi, request *RpcRequest) *interface{} {
response = &RpcErrorResponse{Jsonrpc: jsonrpcver, Id: request.Id, Error: jsonerr}
}
- rpchttplogger.DebugDetailf("Generated response: %T %s", response, response)
+ rpclogger.DebugDetailf("Generated response: %T %s", response, response)
return &response
}
diff --git a/rpc/util.go b/rpc/util.go
index 9a1d11bf1..e2442b9fb 100644
--- a/rpc/util.go
+++ b/rpc/util.go
@@ -19,13 +19,10 @@ package rpc
import (
"time"
- "github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/state"
"github.com/ethereum/go-ethereum/xeth"
)
-var rpclogger = logger.NewLogger("RPC")
-
type whisperFilter struct {
messages []xeth.WhisperMessage
timeout time.Time