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

View File

@@ -321,7 +321,7 @@ func (s *session) Send(m *transport.Message) error {
msg.link = ""
}
log.Debugf("Appending %+v to send backlog", msg)
log.Tracef("Appending %+v to send backlog", msg)
// send the actual message
s.send <- msg
@@ -352,7 +352,7 @@ func (s *session) Recv(m *transport.Message) error {
default:
}
log.Debugf("Received %+v from recv backlog", msg)
log.Tracef("Received %+v from recv backlog", msg)
// set message
*m = *msg.data
// return nil