@cryptotaxi247 / kubo / commits / 0db1a9486

misc: suppress logs to Debug (from Info)

Brian Tiger Chow committed Feb 6, 2015 at 11:24 UTC 0db1a9486287de6e499839e4be996fa0fd02a02c
4 files changed +6 -6
cmd/ipfs/main.go
+2 -2
@@ -276,7 +276,7 @@ func callCommand(ctx context.Context, req cmds.Request, root *cmds.Command, cmd
276 return nil, err
277 }
278
279 - log.Info("looking for running daemon...")
279 + log.Debug("looking for running daemon...")
280 useDaemon, err := commandShouldRunOnDaemon(*details, req, root)
281 if err != nil {
282 return nil, err
@@ -320,7 +320,7 @@ func callCommand(ctx context.Context, req cmds.Request, root *cmds.Command, cmd
320 }
321
322 } else {
323 - log.Info("Executing command locally")
323 + log.Debug("Executing command locally")
324
325 // Okay!!!!! NOW we can call the command.
326 res = root.Call(req)
exchange/bitswap/decision/engine.go
+1 -1
@@ -165,7 +165,7 @@ func (e *Engine) MessageReceived(p peer.ID, m bsmsg.BitSwapMessage) error {
165 defer e.lock.Unlock()
166
167 if len(m.Wantlist()) == 0 && len(m.Blocks()) == 0 {
168 - log.Info("superfluous message")
168 + log.Debug("received empty message from", p)
169 }
170
171 newWorkExists := false
p2p/nat/nat.go
+2 -2
@@ -320,7 +320,7 @@ func (nat *NAT) establishMapping(m *mapping) {
320 failure := func() {
321 m.setExternalPort(0) // clear mapping
322 // TODO: log.Event
323 - log.Infof("failed to establish port mapping: %s", err)
323 + log.Debugf("failed to establish port mapping: %s", err)
324 nat.Notifier.notifyAll(func(n Notifiee) {
325 n.MappingFailed(nat, m, oldport, err)
326 })
@@ -344,7 +344,7 @@ func (nat *NAT) establishMapping(m *mapping) {
344
345 log.Debugf("NAT Mapping: %s --> %s", m.InternalAddr(), ext)
346 if oldport != 0 && newport != oldport {
347 - log.Infof("failed to renew same port mapping: ch %d -> %d", oldport, newport)
347 + log.Debugf("failed to renew same port mapping: ch %d -> %d", oldport, newport)
348 nat.Notifier.notifyAll(func(n Notifiee) {
349 n.MappingChanged(nat, m, oldport, newport)
350 })
p2p/protocol/mux.go
+1 -1
@@ -110,7 +110,7 @@ func (m *Mux) HandleSync(s inet.Stream) {
110 return
111 }
112
113 - log.Infof("muxer handle protocol %s: %s", s.Conn().RemotePeer(), name)
113 + log.Debugf("muxer handle protocol %s: %s", s.Conn().RemotePeer(), name)
114 handler(s)
115 }
116