diff options
author | Bas van Kervel <basvankervel@gmail.com> | 2015-06-25 21:54:16 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@gmail.com> | 2015-06-25 21:54:16 +0800 |
commit | 662285074e55a3915f7236a04fec355c3f416eb8 (patch) | |
tree | 87f24d50fa75351444a5992cb319cf565695b2a5 /rpc/comms/ipc_unix.go | |
parent | 5757a0edb59f854433d11982b2ba4831cceb167e (diff) | |
download | dexon-662285074e55a3915f7236a04fec355c3f416eb8.tar dexon-662285074e55a3915f7236a04fec355c3f416eb8.tar.gz dexon-662285074e55a3915f7236a04fec355c3f416eb8.tar.bz2 dexon-662285074e55a3915f7236a04fec355c3f416eb8.tar.lz dexon-662285074e55a3915f7236a04fec355c3f416eb8.tar.xz dexon-662285074e55a3915f7236a04fec355c3f416eb8.tar.zst dexon-662285074e55a3915f7236a04fec355c3f416eb8.zip |
improved logging for IPC connection lifetime management
Diffstat (limited to 'rpc/comms/ipc_unix.go')
-rw-r--r-- | rpc/comms/ipc_unix.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rpc/comms/ipc_unix.go b/rpc/comms/ipc_unix.go index 5724231f4..3e71c7d32 100644 --- a/rpc/comms/ipc_unix.go +++ b/rpc/comms/ipc_unix.go @@ -48,7 +48,10 @@ func startIpc(cfg IpcConfig, codec codec.Codec, api shared.EthereumApi) error { continue } - go handle(conn, api, codec) + id := newIpcConnId() + glog.V(logger.Debug).Infof("New IPC connection with id %06d started\n", id) + + go handle(id, conn, api, codec) } os.Remove(cfg.Endpoint) |