Skip to content

Commit

Permalink
Remove log spam from failed provides
Browse files Browse the repository at this point in the history
  • Loading branch information
ianopolous committed Jul 12, 2023
1 parent c52fb2c commit 517219b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/peergos/protocol/dht/Kademlia.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ public CompletableFuture<Void> provideBlock(Multihash block, Host us, PeerAddres
.map(p -> dialPeer(p, us)
.thenCompose(contr -> contr.provide(block, ourAddrs))
.exceptionally(t -> {
if (t.getCause() instanceof NonCompleteException)
return true;
LOG.log(Level.FINE, t, t::getMessage);
return true;
}))
Expand Down

0 comments on commit 517219b

Please sign in to comment.