Commit 3f05aa05 authored by Jeromy Johnson's avatar Jeromy Johnson Committed by GitHub

Merge pull request #2853 from ipfs/feature/decapitalize-Debug

Decapitalized log.Debug messages
parents 47d10d7b 2203d3b1
...@@ -267,7 +267,7 @@ func (dht *IpfsDHT) betterPeersToQuery(pmes *pb.Message, p peer.ID, count int) [ ...@@ -267,7 +267,7 @@ func (dht *IpfsDHT) betterPeersToQuery(pmes *pb.Message, p peer.ID, count int) [
// == to self? thats bad // == to self? thats bad
for _, p := range closer { for _, p := range closer {
if p == dht.self { if p == dht.self {
log.Debug("Attempted to return self! this shouldnt happen...") log.Debug("attempted to return self! this shouldn't happen...")
return nil return nil
} }
} }
......
...@@ -54,7 +54,7 @@ func (dht *IpfsDHT) handleNewMessage(s inet.Stream) { ...@@ -54,7 +54,7 @@ func (dht *IpfsDHT) handleNewMessage(s inet.Stream) {
// if nil response, return it before serializing // if nil response, return it before serializing
if rpmes == nil { if rpmes == nil {
log.Debug("Got back nil response from request.") log.Debug("got back nil response from request")
continue continue
} }
......
...@@ -108,7 +108,7 @@ func (dht *IpfsDHT) checkLocalDatastore(k key.Key) (*pb.Record, error) { ...@@ -108,7 +108,7 @@ func (dht *IpfsDHT) checkLocalDatastore(k key.Key) (*pb.Record, error) {
rec := new(pb.Record) rec := new(pb.Record)
err = proto.Unmarshal(byts, rec) err = proto.Unmarshal(byts, rec)
if err != nil { if err != nil {
log.Debug("Failed to unmarshal DHT record from datastore.") log.Debug("failed to unmarshal DHT record from datastore")
return nil, err return nil, err
} }
......
...@@ -84,7 +84,7 @@ func (dht *IpfsDHT) getPublicKeyFromNode(ctx context.Context, p peer.ID) (ci.Pub ...@@ -84,7 +84,7 @@ func (dht *IpfsDHT) getPublicKeyFromNode(ctx context.Context, p peer.ID) (ci.Pub
// validity because a) we can't. b) we know the hash of the // validity because a) we can't. b) we know the hash of the
// key we're looking for. // key we're looking for.
val := record.GetValue() val := record.GetValue()
log.Debug("DHT got a value from other peer.") log.Debug("DHT got a value from other peer")
pk, err = ci.UnmarshalPublicKey(val) pk, err = ci.UnmarshalPublicKey(val)
if err != nil { if err != nil {
......
...@@ -46,7 +46,7 @@ func (dht *IpfsDHT) PutValue(ctx context.Context, key key.Key, value []byte) err ...@@ -46,7 +46,7 @@ func (dht *IpfsDHT) PutValue(ctx context.Context, key key.Key, value []byte) err
rec, err := record.MakePutRecord(sk, key, value, sign) rec, err := record.MakePutRecord(sk, key, value, sign)
if err != nil { if err != nil {
log.Debug("Creation of record failed!") log.Debug("creation of record failed!")
return err return err
} }
...@@ -346,7 +346,7 @@ func (dht *IpfsDHT) findProvidersAsyncRoutine(ctx context.Context, key key.Key, ...@@ -346,7 +346,7 @@ func (dht *IpfsDHT) findProvidersAsyncRoutine(ctx context.Context, key key.Key,
select { select {
case peerOut <- prov: case peerOut <- prov:
case <-ctx.Done(): case <-ctx.Done():
log.Debug("Context timed out sending more providers") log.Debug("context timed out sending more providers")
return nil, ctx.Err() return nil, ctx.Err()
} }
} }
...@@ -397,7 +397,7 @@ func (dht *IpfsDHT) FindPeer(ctx context.Context, id peer.ID) (pstore.PeerInfo, ...@@ -397,7 +397,7 @@ func (dht *IpfsDHT) FindPeer(ctx context.Context, id peer.ID) (pstore.PeerInfo,
// Sanity... // Sanity...
for _, p := range peers { for _, p := range peers {
if p == id { if p == id {
log.Debug("Found target peer in list of closest peers...") log.Debug("found target peer in list of closest peers...")
return dht.peerstore.PeerInfo(p), nil return dht.peerstore.PeerInfo(p), nil
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment