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_windows.go | |
parent | 5757a0edb59f854433d11982b2ba4831cceb167e (diff) | |
download | go-tangerine-662285074e55a3915f7236a04fec355c3f416eb8.tar go-tangerine-662285074e55a3915f7236a04fec355c3f416eb8.tar.gz go-tangerine-662285074e55a3915f7236a04fec355c3f416eb8.tar.bz2 go-tangerine-662285074e55a3915f7236a04fec355c3f416eb8.tar.lz go-tangerine-662285074e55a3915f7236a04fec355c3f416eb8.tar.xz go-tangerine-662285074e55a3915f7236a04fec355c3f416eb8.tar.zst go-tangerine-662285074e55a3915f7236a04fec355c3f416eb8.zip |
improved logging for IPC connection lifetime management
Diffstat (limited to 'rpc/comms/ipc_windows.go')
-rw-r--r-- | rpc/comms/ipc_windows.go | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/rpc/comms/ipc_windows.go b/rpc/comms/ipc_windows.go index 4914a99c4..203cd2d7b 100644 --- a/rpc/comms/ipc_windows.go +++ b/rpc/comms/ipc_windows.go @@ -667,13 +667,16 @@ func startIpc(cfg IpcConfig, codec codec.Codec, api shared.EthereumApi) error { glog.V(logger.Error).Infof("Error accepting ipc connection - %v\n", err) continue } - - go handle(conn, api, codec) - } - - os.Remove(cfg.Endpoint) - }() - + + 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) + }() + glog.V(logger.Info).Infof("IPC service started (%s)\n", cfg.Endpoint) return nil |