aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-12-06 13:33:27 +0000
committerBart Polot <bart@net.in.tum.de>2012-12-06 13:33:27 +0000
commiteb7221b4ca8db6152240b4f71b35ef7296795532 (patch)
tree2e98661dd9caf6dc038d12ac745b8045e8615b7a /src/mesh
parentd525ead0ab2cae4f51c5abecf9bf96423d63d3b7 (diff)
downloadgnunet-eb7221b4ca8db6152240b4f71b35ef7296795532.tar.gz
gnunet-eb7221b4ca8db6152240b4f71b35ef7296795532.zip
- debug info for stream / hostkey bugs
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/gnunet-service-mesh.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
index c5f0bbc0a..13f4c261f 100644
--- a/src/mesh/gnunet-service-mesh.c
+++ b/src/mesh/gnunet-service-mesh.c
@@ -5949,9 +5949,9 @@ handle_mesh_data_to_orig (void *cls, const struct GNUNET_PeerIdentity *peer,
5949 /* TODO notify that we dont know this tunnel (whom)? */ 5949 /* TODO notify that we dont know this tunnel (whom)? */
5950 GNUNET_STATISTICS_update (stats, "# data on unknown tunnel", 1, GNUNET_NO); 5950 GNUNET_STATISTICS_update (stats, "# data on unknown tunnel", 1, GNUNET_NO);
5951 GNUNET_break_op (0); 5951 GNUNET_break_op (0);
5952 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 5952 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
5953 "Received to_origin with PID %u on unknown tunnel\n", 5953 "Received to_origin with PID %u on unknown tunnel %s [%u]\n",
5954 pid); 5954 pid, GNUNET_i2s (&msg->oid), ntohl (msg->tid));
5955 return GNUNET_OK; 5955 return GNUNET_OK;
5956 } 5956 }
5957 5957
@@ -8403,6 +8403,12 @@ core_init (void *cls, struct GNUNET_CORE_Handle *server,
8403 NULL == server) 8403 NULL == server)
8404 { 8404 {
8405 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("Wrong CORE service\n")); 8405 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("Wrong CORE service\n"));
8406 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
8407 " core id %s\n",
8408 GNUNET_i2s (identity));
8409 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
8410 " my id %s\n",
8411 GNUNET_i2s (&my_full_id));
8406 GNUNET_SCHEDULER_shutdown (); // Try gracefully 8412 GNUNET_SCHEDULER_shutdown (); // Try gracefully
8407 if (10 < i++) 8413 if (10 < i++)
8408 GNUNET_abort(); // Try harder 8414 GNUNET_abort(); // Try harder
@@ -8612,7 +8618,8 @@ key_generation_cb (void *cls,
8612 if (NULL == pk) 8618 if (NULL == pk)
8613 { 8619 {
8614 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 8620 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
8615 _("Mesh service could not access hostkey. Exiting.\n")); 8621 _("Mesh service could not access hostkey: %s. Exiting.\n"),
8622 emsg);
8616 GNUNET_SCHEDULER_shutdown (); 8623 GNUNET_SCHEDULER_shutdown ();
8617 return; 8624 return;
8618 } 8625 }