From 9e3363721375c95146989fc59a2e1eef6cbff38d Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Wed, 25 Sep 2019 20:24:56 +0100 Subject: [PATCH] Do not log send/recv body --- tunnel/default.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tunnel/default.go b/tunnel/default.go index ff13e833..6107021e 100644 --- a/tunnel/default.go +++ b/tunnel/default.go @@ -353,10 +353,10 @@ func (t *tun) process() { // send the message for _, link := range sendTo { // send the message via the current link - log.Debugf("Sending %+v to %s", newMsg, link.Remote()) + log.Debugf("Sending %+v to %s", newMsg.Header, link.Remote()) if errr := link.Send(newMsg); errr != nil { - log.Debugf("Tunnel error sending %+v to %s: %v", newMsg, link.Remote(), errr) + log.Debugf("Tunnel error sending %+v to %s: %v", newMsg.Header, link.Remote(), errr) err = errors.New(errr.Error()) t.delLink(link.Remote()) continue @@ -533,7 +533,7 @@ func (t *tun) listen(link *link) { // a continued session case "session": // process message - log.Debugf("Received %+v from %s", msg, link.Remote()) + log.Debugf("Received %+v from %s", msg.Header, link.Remote()) // an announcement of a channel listener case "announce": // process the announcement