aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
authorPhil <phil.buschmann@tum.de>2018-06-13 23:40:25 +0200
committerPhil <phil.buschmann@tum.de>2018-06-13 23:40:25 +0200
commit688bd873c3cb463090039f64b9f13b9a029695dc (patch)
treebc74703d4912da712d82f869237057405ad49060 /src/gns
parenta006f82603921d7b6775c7a7be60c7f388c6a927 (diff)
parentc9b52f6ce67209e000d2f679a34c23bd4724b243 (diff)
downloadgnunet-688bd873c3cb463090039f64b9f13b9a029695dc.tar.gz
gnunet-688bd873c3cb463090039f64b9f13b9a029695dc.zip
-Merge branch 'master' of ssh://gnunet.org/gnunet into gsoc2018/rest_api
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/gnunet-service-gns_resolver.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c
index a90cc4c0e..54c3cba23 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -1377,6 +1377,10 @@ vpn_allocation_cb (void *cls,
1377 } 1377 }
1378 } 1378 }
1379 GNUNET_assert (i < vpn_ctx->rd_count); 1379 GNUNET_assert (i < vpn_ctx->rd_count);
1380 if (0 == vpn_ctx->rd_count)
1381 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
1382 _("VPN returned empty result for `%s'\n"),
1383 rh->name);
1380 handle_gns_resolution_result (rh, 1384 handle_gns_resolution_result (rh,
1381 vpn_ctx->rd_count, 1385 vpn_ctx->rd_count,
1382 rd); 1386 rd);
@@ -1859,7 +1863,8 @@ handle_gns_resolution_result (void *cls,
1859 if (0 == rd_count) 1863 if (0 == rd_count)
1860 { 1864 {
1861 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 1865 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
1862 _("GNS lookup failed (zero records found)\n")); 1866 _("GNS lookup failed (zero records found for `%s')\n"),
1867 rh->name);
1863 fail_resolution (rh); 1868 fail_resolution (rh);
1864 return; 1869 return;
1865 } 1870 }
@@ -2370,6 +2375,11 @@ handle_dht_response (void *cls,
2370 fail_resolution (rh); 2375 fail_resolution (rh);
2371 return; 2376 return;
2372 } 2377 }
2378 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2379 "Decrypting DHT block of size %u for `%s', expires %s\n",
2380 ntohl (block->purpose.size),
2381 rh->name,
2382 GNUNET_STRINGS_absolute_time_to_string (exp));
2373 if (GNUNET_OK != 2383 if (GNUNET_OK !=
2374 GNUNET_GNSRECORD_block_decrypt (block, 2384 GNUNET_GNSRECORD_block_decrypt (block,
2375 &ac->authority_info.gns_authority, 2385 &ac->authority_info.gns_authority,
@@ -2450,6 +2460,10 @@ handle_gns_namecache_resolution_result (void *cls,
2450{ 2460{
2451 struct GNS_ResolverHandle *rh = cls; 2461 struct GNS_ResolverHandle *rh = cls;
2452 2462
2463 if (0 == rd_count)
2464 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
2465 _("GNS namecache returned empty result for `%s'\n"),
2466 rh->name);
2453 handle_gns_resolution_result (rh, 2467 handle_gns_resolution_result (rh,
2454 rd_count, 2468 rd_count,
2455 rd); 2469 rd);