diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-12-10 19:15:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-10 19:15:03 +0800 |
commit | af8daf91a659c05a9c6424752d050f2beca0ee29 (patch) | |
tree | 907fcedb1121cbb81c89857552b20606f1ec8c7a | |
parent | fd66af5ee5020cd61fbb971b294a426da60f62f6 (diff) | |
parent | 3dba6a6d27cc98814a23555d84cf6f016fe4635d (diff) | |
download | dexon-af8daf91a659c05a9c6424752d050f2beca0ee29.tar dexon-af8daf91a659c05a9c6424752d050f2beca0ee29.tar.gz dexon-af8daf91a659c05a9c6424752d050f2beca0ee29.tar.bz2 dexon-af8daf91a659c05a9c6424752d050f2beca0ee29.tar.lz dexon-af8daf91a659c05a9c6424752d050f2beca0ee29.tar.xz dexon-af8daf91a659c05a9c6424752d050f2beca0ee29.tar.zst dexon-af8daf91a659c05a9c6424752d050f2beca0ee29.zip |
node, rpc: log cleanups in ipc listener function (#18124)
node,rpc: remove unused log in ipc listener function
-rw-r--r-- | node/node.go | 2 | ||||
-rw-r--r-- | rpc/ipc.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/node/node.go b/node/node.go index 846100839..c35a50972 100644 --- a/node/node.go +++ b/node/node.go @@ -322,7 +322,7 @@ func (n *Node) stopIPC() { n.ipcListener.Close() n.ipcListener = nil - n.log.Info("IPC endpoint closed", "endpoint", n.ipcEndpoint) + n.log.Info("IPC endpoint closed", "url", n.ipcEndpoint) } if n.ipcHandler != nil { n.ipcHandler.Stop() diff --git a/rpc/ipc.go b/rpc/ipc.go index b05e503d7..4cce1cf74 100644 --- a/rpc/ipc.go +++ b/rpc/ipc.go @@ -29,12 +29,12 @@ func (srv *Server) ServeListener(l net.Listener) error { for { conn, err := l.Accept() if netutil.IsTemporaryError(err) { - log.Warn("RPC accept error", "err", err) + log.Warn("IPC accept error", "err", err) continue } else if err != nil { return err } - log.Trace("Accepted connection", "addr", conn.RemoteAddr()) + log.Trace("IPC accepted connection") go srv.ServeCodec(NewJSONCodec(conn), OptionMethodInvocation|OptionSubscriptions) } } |