From 14209748d6753f09fead5bf2cf1eb5742e987ad5 Mon Sep 17 00:00:00 2001 From: John Jones Date: Mon, 3 Apr 2017 22:07:22 -0500 Subject: [PATCH] More debugging messages --- routing/dht_protocol.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routing/dht_protocol.c b/routing/dht_protocol.c index 62f4560..bf9b7b9 100644 --- a/routing/dht_protocol.c +++ b/routing/dht_protocol.c @@ -175,8 +175,10 @@ int libp2p_routing_dht_handle_add_provider(struct SessionContext* session, struc new_head->next = peer->addr_head; peer->addr_head = new_head; // now add the peer to the peerstore + libp2p_logger_debug("dht_protocol", "About to add peer to peerstore\n"); if (!libp2p_peerstore_add_peer(peerstore, peer)) goto exit; + libp2p_logger_debug("dht_protocol", "About to add key to providerstore\n"); if (!libp2p_providerstore_add(providerstore, message->key, message->key_size, peer->id, peer->id_size)) goto exit; }