Suppress log messages

This commit is contained in:
Asim Aslam
2019-11-03 16:12:17 +00:00
parent d3151f1f0f
commit 45cd14c4b7
3 changed files with 13 additions and 15 deletions

View File

@@ -363,7 +363,7 @@ 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.Header, link.Remote())
log.Tracef("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.Header, link.Remote(), errr)
@@ -548,7 +548,7 @@ func (t *tun) listen(link *link) {
// a continued session
case "session":
// process message
log.Debugf("Received %+v from %s", msg.Header, link.Remote())
log.Tracef("Received %+v from %s", msg.Header, link.Remote())
// an announcement of a channel listener
case "announce":
// process the announcement