Skip to content

Commit 3f05aa0

Browse files
Merge pull request ipfs#2853 from ipfs/feature/decapitalize-Debug
Decapitalized log.Debug messages
2 parents 47d10d7 + 2203d3b commit 3f05aa0

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

dht.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ func (dht *IpfsDHT) betterPeersToQuery(pmes *pb.Message, p peer.ID, count int) [
267267
// == to self? thats bad
268268
for _, p := range closer {
269269
if p == dht.self {
270-
log.Debug("Attempted to return self! this shouldnt happen...")
270+
log.Debug("attempted to return self! this shouldn't happen...")
271271
return nil
272272
}
273273
}

dht_net.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (dht *IpfsDHT) handleNewMessage(s inet.Stream) {
5454

5555
// if nil response, return it before serializing
5656
if rpmes == nil {
57-
log.Debug("Got back nil response from request.")
57+
log.Debug("got back nil response from request")
5858
continue
5959
}
6060

handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (dht *IpfsDHT) checkLocalDatastore(k key.Key) (*pb.Record, error) {
108108
rec := new(pb.Record)
109109
err = proto.Unmarshal(byts, rec)
110110
if err != nil {
111-
log.Debug("Failed to unmarshal DHT record from datastore.")
111+
log.Debug("failed to unmarshal DHT record from datastore")
112112
return nil, err
113113
}
114114

records.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (dht *IpfsDHT) getPublicKeyFromNode(ctx context.Context, p peer.ID) (ci.Pub
8484
// validity because a) we can't. b) we know the hash of the
8585
// key we're looking for.
8686
val := record.GetValue()
87-
log.Debug("DHT got a value from other peer.")
87+
log.Debug("DHT got a value from other peer")
8888

8989
pk, err = ci.UnmarshalPublicKey(val)
9090
if err != nil {

routing.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (dht *IpfsDHT) PutValue(ctx context.Context, key key.Key, value []byte) err
4646

4747
rec, err := record.MakePutRecord(sk, key, value, sign)
4848
if err != nil {
49-
log.Debug("Creation of record failed!")
49+
log.Debug("creation of record failed!")
5050
return err
5151
}
5252

@@ -346,7 +346,7 @@ func (dht *IpfsDHT) findProvidersAsyncRoutine(ctx context.Context, key key.Key,
346346
select {
347347
case peerOut <- prov:
348348
case <-ctx.Done():
349-
log.Debug("Context timed out sending more providers")
349+
log.Debug("context timed out sending more providers")
350350
return nil, ctx.Err()
351351
}
352352
}
@@ -397,7 +397,7 @@ func (dht *IpfsDHT) FindPeer(ctx context.Context, id peer.ID) (pstore.PeerInfo,
397397
// Sanity...
398398
for _, p := range peers {
399399
if p == id {
400-
log.Debug("Found target peer in list of closest peers...")
400+
log.Debug("found target peer in list of closest peers...")
401401
return dht.peerstore.PeerInfo(p), nil
402402
}
403403
}

0 commit comments

Comments
 (0)