aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-10 21:03:26 +0800
committerobscuren <geffobscura@gmail.com>2014-07-10 21:03:26 +0800
commit639f1fd3396419fb712b875cfacc333538fcc4f3 (patch)
tree2fce7fec5fdfd54b1193d87319780544a4d6caee /peer.go
parent67e5689f874940c99e4742a5c8c2a6a194cb2003 (diff)
downloaddexon-639f1fd3396419fb712b875cfacc333538fcc4f3.tar.gz
dexon-639f1fd3396419fb712b875cfacc333538fcc4f3.tar.zst
dexon-639f1fd3396419fb712b875cfacc333538fcc4f3.zip
Log received and send to
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/peer.go b/peer.go
index cc2863a33..13b81d1a8 100644
--- a/peer.go
+++ b/peer.go
@@ -252,7 +252,7 @@ func (p *Peer) writeMessage(msg *ethwire.Msg) {
}
}
- peerlogger.DebugDetailln("<=", msg.Type, msg.Data)
+ peerlogger.DebugDetailf("(%v) <= %v %v\n", p.conn.RemoteAddr(), msg.Type, msg.Data)
err := ethwire.WriteMessage(p.conn, msg)
if err != nil {
@@ -326,7 +326,7 @@ func (p *Peer) HandleInbound() {
peerlogger.Debugln(err)
}
for _, msg := range msgs {
- peerlogger.DebugDetailln("=>", msg.Type, msg.Data)
+ peerlogger.DebugDetailf("(%v) => %v %v\n", p.conn.RemoteAddr(), msg.Type, msg.Data)
switch msg.Type {
case ethwire.MsgHandshakeTy: