mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 09:59:13 +08:00
misc: suppress logs to Debug (from Info)
This commit is contained in:
@ -276,7 +276,7 @@ func callCommand(ctx context.Context, req cmds.Request, root *cmds.Command, cmd
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info("looking for running daemon...")
|
log.Debug("looking for running daemon...")
|
||||||
useDaemon, err := commandShouldRunOnDaemon(*details, req, root)
|
useDaemon, err := commandShouldRunOnDaemon(*details, req, root)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -320,7 +320,7 @@ func callCommand(ctx context.Context, req cmds.Request, root *cmds.Command, cmd
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
log.Info("Executing command locally")
|
log.Debug("Executing command locally")
|
||||||
|
|
||||||
// Okay!!!!! NOW we can call the command.
|
// Okay!!!!! NOW we can call the command.
|
||||||
res = root.Call(req)
|
res = root.Call(req)
|
||||||
|
@ -165,7 +165,7 @@ func (e *Engine) MessageReceived(p peer.ID, m bsmsg.BitSwapMessage) error {
|
|||||||
defer e.lock.Unlock()
|
defer e.lock.Unlock()
|
||||||
|
|
||||||
if len(m.Wantlist()) == 0 && len(m.Blocks()) == 0 {
|
if len(m.Wantlist()) == 0 && len(m.Blocks()) == 0 {
|
||||||
log.Info("superfluous message")
|
log.Debug("received empty message from", p)
|
||||||
}
|
}
|
||||||
|
|
||||||
newWorkExists := false
|
newWorkExists := false
|
||||||
|
@ -320,7 +320,7 @@ func (nat *NAT) establishMapping(m *mapping) {
|
|||||||
failure := func() {
|
failure := func() {
|
||||||
m.setExternalPort(0) // clear mapping
|
m.setExternalPort(0) // clear mapping
|
||||||
// TODO: log.Event
|
// 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) {
|
nat.Notifier.notifyAll(func(n Notifiee) {
|
||||||
n.MappingFailed(nat, m, oldport, err)
|
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)
|
log.Debugf("NAT Mapping: %s --> %s", m.InternalAddr(), ext)
|
||||||
if oldport != 0 && newport != oldport {
|
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) {
|
nat.Notifier.notifyAll(func(n Notifiee) {
|
||||||
n.MappingChanged(nat, m, oldport, newport)
|
n.MappingChanged(nat, m, oldport, newport)
|
||||||
})
|
})
|
||||||
|
@ -110,7 +110,7 @@ func (m *Mux) HandleSync(s inet.Stream) {
|
|||||||
return
|
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)
|
handler(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user