Skip to content

Commit

Permalink
Merge pull request ipfs#2853 from ipfs/feature/decapitalize-Debug
Browse files Browse the repository at this point in the history
Decapitalized log.Debug messages
  • Loading branch information
whyrusleeping committed Jun 17, 2016
2 parents 47d10d7 + 2203d3b commit 3f05aa0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dht.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (dht *IpfsDHT) betterPeersToQuery(pmes *pb.Message, p peer.ID, count int) [
// == to self? thats bad
for _, p := range closer {
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
}
}
Expand Down
2 changes: 1 addition & 1 deletion dht_net.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (dht *IpfsDHT) handleNewMessage(s inet.Stream) {

// if nil response, return it before serializing
if rpmes == nil {
log.Debug("Got back nil response from request.")
log.Debug("got back nil response from request")
continue
}

Expand Down
2 changes: 1 addition & 1 deletion handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (dht *IpfsDHT) checkLocalDatastore(k key.Key) (*pb.Record, error) {
rec := new(pb.Record)
err = proto.Unmarshal(byts, rec)
if err != nil {
log.Debug("Failed to unmarshal DHT record from datastore.")
log.Debug("failed to unmarshal DHT record from datastore")
return nil, err
}

Expand Down
2 changes: 1 addition & 1 deletion records.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
// key we're looking for.
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)
if err != nil {
Expand Down
6 changes: 3 additions & 3 deletions routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
if err != nil {
log.Debug("Creation of record failed!")
log.Debug("creation of record failed!")
return err
}

Expand Down Expand Up @@ -346,7 +346,7 @@ func (dht *IpfsDHT) findProvidersAsyncRoutine(ctx context.Context, key key.Key,
select {
case peerOut <- prov:
case <-ctx.Done():
log.Debug("Context timed out sending more providers")
log.Debug("context timed out sending more providers")
return nil, ctx.Err()
}
}
Expand Down Expand Up @@ -397,7 +397,7 @@ func (dht *IpfsDHT) FindPeer(ctx context.Context, id peer.ID) (pstore.PeerInfo,
// Sanity...
for _, p := range peers {
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
}
}
Expand Down

0 comments on commit 3f05aa0

Please sign in to comment.