1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-29 09:34:03 +08:00

misc: suppress logs to Debug (from Info)

This commit is contained in:
Brian Tiger Chow
2015-02-06 11:24:08 -07:00
parent a549cf57d6
commit 0db1a94862
4 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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

View File

@ -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)
})

View File

@ -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)
}