提交 0db1a948 作者: Brian Tiger Chow

misc: suppress logs to Debug (from Info)

上级 a549cf57
......@@ -276,7 +276,7 @@ func callCommand(ctx context.Context, req cmds.Request, root *cmds.Command, cmd
return nil, err
}
log.Info("looking for running daemon...")
log.Debug("looking for running daemon...")
useDaemon, err := commandShouldRunOnDaemon(*details, req, root)
if err != nil {
return nil, err
......@@ -320,7 +320,7 @@ func callCommand(ctx context.Context, req cmds.Request, root *cmds.Command, cmd
}
} else {
log.Info("Executing command locally")
log.Debug("Executing command locally")
// Okay!!!!! NOW we can call the command.
res = root.Call(req)
......
......@@ -165,7 +165,7 @@ func (e *Engine) MessageReceived(p peer.ID, m bsmsg.BitSwapMessage) error {
defer e.lock.Unlock()
if len(m.Wantlist()) == 0 && len(m.Blocks()) == 0 {
log.Info("superfluous message")
log.Debug("received empty message from", p)
}
newWorkExists := false
......
......@@ -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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论