@@ -43,7 +43,7 @@ type EthereumClient interface {
43
43
SupportedModules () (map [string ]string , error )
44
44
}
45
45
46
- func handle (conn net.Conn , api shared.EthereumApi , c codec.Codec ) {
46
+ func handle (id int , conn net.Conn , api shared.EthereumApi , c codec.Codec ) {
47
47
codec := c .New (conn )
48
48
49
49
for {
@@ -52,8 +52,8 @@ func handle(conn net.Conn, api shared.EthereumApi, c codec.Codec) {
52
52
codec .Close ()
53
53
return
54
54
} else if err != nil {
55
- glog .V (logger .Error ).Infof ("comms recv err - %v\n " , err )
56
55
codec .Close ()
56
+ glog .V (logger .Debug ).Infof ("Closed IPC Conn %06d recv err - %v\n " , id , err )
57
57
return
58
58
}
59
59
@@ -71,8 +71,8 @@ func handle(conn net.Conn, api shared.EthereumApi, c codec.Codec) {
71
71
72
72
err = codec .WriteResponse (responses [:responseCount ])
73
73
if err != nil {
74
- glog .V (logger .Error ).Infof ("comms send err - %v\n " , err )
75
74
codec .Close ()
75
+ glog .V (logger .Debug ).Infof ("Closed IPC Conn %06d send err - %v\n " , id , err )
76
76
return
77
77
}
78
78
} else {
@@ -82,8 +82,8 @@ func handle(conn net.Conn, api shared.EthereumApi, c codec.Codec) {
82
82
rpcResponse = shared .NewRpcResponse (requests [0 ].Id , requests [0 ].Jsonrpc , res , err )
83
83
err = codec .WriteResponse (rpcResponse )
84
84
if err != nil {
85
- glog .V (logger .Error ).Infof ("comms send err - %v\n " , err )
86
85
codec .Close ()
86
+ glog .V (logger .Debug ).Infof ("Closed IPC Conn %06d send err - %v\n " , id , err )
87
87
return
88
88
}
89
89
}
0 commit comments