aboutsummaryrefslogtreecommitdiff
path: root/src/conversation
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-11-16 19:56:12 +0000
committerChristian Grothoff <christian@grothoff.org>2013-11-16 19:56:12 +0000
commitaa04f0777c139c486aabb1e776a4e3b79c39f788 (patch)
treed04b7975121a25c355456da1c4af7aabbc530d30 /src/conversation
parent28f42b43e6816b622f6dcc8a2546e9037948d6cd (diff)
downloadgnunet-aa04f0777c139c486aabb1e776a4e3b79c39f788.tar.gz
gnunet-aa04f0777c139c486aabb1e776a4e3b79c39f788.zip
-more debug messages
Diffstat (limited to 'src/conversation')
-rw-r--r--src/conversation/conversation_api.c6
-rw-r--r--src/conversation/conversation_api_call.c6
-rw-r--r--src/conversation/gnunet-service-conversation.c11
3 files changed, 15 insertions, 8 deletions
diff --git a/src/conversation/conversation_api.c b/src/conversation/conversation_api.c
index d30846d22..31245b6cd 100644
--- a/src/conversation/conversation_api.c
+++ b/src/conversation/conversation_api.c
@@ -553,10 +553,8 @@ phone_error_handler (void *cls,
553{ 553{
554 struct GNUNET_CONVERSATION_Phone *phone = cls; 554 struct GNUNET_CONVERSATION_Phone *phone = cls;
555 555
556 GNUNET_break (0); 556 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
557 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 557 _("Connection to conversation service lost, trying to reconnect\n"));
558 _("Internal MQ error %d\n"),
559 error);
560 reconnect_phone (phone); 558 reconnect_phone (phone);
561} 559}
562 560
diff --git a/src/conversation/conversation_api_call.c b/src/conversation/conversation_api_call.c
index 0d603e0ba..20992c6b5 100644
--- a/src/conversation/conversation_api_call.c
+++ b/src/conversation/conversation_api_call.c
@@ -461,10 +461,8 @@ call_error_handler (void *cls,
461 GNUNET_CONVERSATION_call_stop (call); 461 GNUNET_CONVERSATION_call_stop (call);
462 return; 462 return;
463 } 463 }
464 GNUNET_break (0); 464 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
465 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 465 _("Connection to conversation service lost, trying to reconnect\n"));
466 _("Internal MQ error %d\n"),
467 error);
468 reconnect_call (call); 466 reconnect_call (call);
469} 467}
470 468
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c
index 7fbff1fac..6e79ad3dd 100644
--- a/src/conversation/gnunet-service-conversation.c
+++ b/src/conversation/gnunet-service-conversation.c
@@ -369,6 +369,8 @@ destroy_line_mesh_channels (struct Channel *ch)
369 struct Line *line = ch->line; 369 struct Line *line = ch->line;
370 struct GNUNET_MESH_Channel *t; 370 struct GNUNET_MESH_Channel *t;
371 371
372 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
373 "Destroying mesh channels\n");
372 if (NULL != ch->reliable_mq) 374 if (NULL != ch->reliable_mq)
373 { 375 {
374 GNUNET_MQ_destroy (ch->reliable_mq); 376 GNUNET_MQ_destroy (ch->reliable_mq);
@@ -1322,7 +1324,11 @@ inbound_end (void *cls,
1322 struct ClientPhoneHangupMessage hup; 1324 struct ClientPhoneHangupMessage hup;
1323 1325
1324 if (NULL == ch) 1326 if (NULL == ch)
1327 {
1328 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1329 "Mesh channel destroyed, but channel is unknown to us\n");
1325 return; 1330 return;
1331 }
1326 line = ch->line; 1332 line = ch->line;
1327 if (ch->channel_unreliable == channel) 1333 if (ch->channel_unreliable == channel)
1328 { 1334 {
@@ -1332,10 +1338,15 @@ inbound_end (void *cls,
1332 ch->unreliable_mth = NULL; 1338 ch->unreliable_mth = NULL;
1333 } 1339 }
1334 ch->channel_unreliable = NULL; 1340 ch->channel_unreliable = NULL;
1341 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1342 "Unreliable channel destroyed\n");
1335 return; 1343 return;
1336 } 1344 }
1337 if (ch->channel_reliable != channel) 1345 if (ch->channel_reliable != channel)
1346 {
1347 /* recursive call, I'm the one destroying 'ch' right now */
1338 return; 1348 return;
1349 }
1339 ch->channel_reliable = NULL; 1350 ch->channel_reliable = NULL;
1340 1351
1341 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1352 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,