mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 23:42:20 +08:00
Replace Critical{,f} with Error{,f}
Except when there is an explicit os.Exit(1) after the Critical line, then replace with Fatal{,f}. golang's log and logrus already call os.Exit(1) by default with Fatal. License: MIT Signed-off-by: rht <rhtbot@gmail.com>
This commit is contained in:
@ -89,7 +89,7 @@ func (dht *IpfsDHT) handleGetValue(ctx context.Context, p peer.ID, pmes *pb.Mess
|
||||
for _, pi := range closerinfos {
|
||||
log.Debugf("handleGetValue returning closer peer: '%s'", pi.ID)
|
||||
if len(pi.Addrs) < 1 {
|
||||
log.Criticalf(`no addresses on peer being sent!
|
||||
log.Errorf(`no addresses on peer being sent!
|
||||
[local:%s]
|
||||
[sending:%s]
|
||||
[remote:%s]`, dht.self, pi.ID, p)
|
||||
|
Reference in New Issue
Block a user