Commit 62d4f170 authored by Brian Tiger Chow's avatar Brian Tiger Chow
Browse files

misc: suppress logs to Debug (from Info)

parent 9c83bd09
......@@ -320,7 +320,7 @@ func (nat *NAT) establishMapping(m *mapping) {
failure := func() {
m.setExternalPort(0) // clear mapping
// TODO: log.Event
log.Infof("failed to establish port mapping: %s", err)
log.Debugf("failed to establish port mapping: %s", err)
nat.Notifier.notifyAll(func(n Notifiee) {
n.MappingFailed(nat, m, oldport, err)
})
......@@ -344,7 +344,7 @@ func (nat *NAT) establishMapping(m *mapping) {
log.Debugf("NAT Mapping: %s --> %s", m.InternalAddr(), ext)
if oldport != 0 && newport != oldport {
log.Infof("failed to renew same port mapping: ch %d -> %d", oldport, newport)
log.Debugf("failed to renew same port mapping: ch %d -> %d", oldport, newport)
nat.Notifier.notifyAll(func(n Notifiee) {
n.MappingChanged(nat, m, oldport, newport)
})
......
......@@ -110,7 +110,7 @@ func (m *Mux) HandleSync(s inet.Stream) {
return
}
log.Infof("muxer handle protocol %s: %s", s.Conn().RemotePeer(), name)
log.Debugf("muxer handle protocol %s: %s", s.Conn().RemotePeer(), name)
handler(s)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment