aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-05-06 12:26:09 +0000
committerNathan S. Evans <evans@in.tum.de>2010-05-06 12:26:09 +0000
commit56b41632651579cf3fd0472227e01cdc8d05d657 (patch)
tree5d93dd2bcdc90ba5fbf333f119b12ab1e75ee62c
parent723b9f11ab20aa6b2fa88840e2f5e52ae72d0b6c (diff)
downloadgnunet-56b41632651579cf3fd0472227e01cdc8d05d657.tar.gz
gnunet-56b41632651579cf3fd0472227e01cdc8d05d657.zip
verbose debugging
-rw-r--r--src/util/client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/client.c b/src/util/client.c
index 1b6f46d52..8e27a4a71 100644
--- a/src/util/client.c
+++ b/src/util/client.c
@@ -601,7 +601,7 @@ service_shutdown_handler (void *cls, const struct GNUNET_MessageHeader *msg)
601 601
602 if ((msg == NULL) && (shutdown_ctx->confirmed != GNUNET_YES)) /* Means the other side closed the connection and never confirmed a shutdown */ 602 if ((msg == NULL) && (shutdown_ctx->confirmed != GNUNET_YES)) /* Means the other side closed the connection and never confirmed a shutdown */
603 { 603 {
604 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Service handle shutdown before ACK!\n"); 604 GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Service handle shutdown before ACK!\n");
605 if (shutdown_ctx->cont != NULL) 605 if (shutdown_ctx->cont != NULL)
606 shutdown_ctx->cont(shutdown_ctx->cont_cls, GNUNET_SYSERR); 606 shutdown_ctx->cont(shutdown_ctx->cont_cls, GNUNET_SYSERR);
607 607
@@ -611,7 +611,7 @@ service_shutdown_handler (void *cls, const struct GNUNET_MessageHeader *msg)
611 } 611 }
612 else if ((msg == NULL) && (shutdown_ctx->confirmed == GNUNET_YES)) 612 else if ((msg == NULL) && (shutdown_ctx->confirmed == GNUNET_YES))
613 { 613 {
614 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Service shutdown complete.\n"); 614 GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Service shutdown complete.\n");
615 if (shutdown_ctx->cont != NULL) 615 if (shutdown_ctx->cont != NULL)
616 shutdown_ctx->cont(shutdown_ctx->cont_cls, GNUNET_NO); 616 shutdown_ctx->cont(shutdown_ctx->cont_cls, GNUNET_NO);
617 617
@@ -626,7 +626,7 @@ service_shutdown_handler (void *cls, const struct GNUNET_MessageHeader *msg)
626 switch (ntohs(msg->type)) 626 switch (ntohs(msg->type))
627 { 627 {
628 case GNUNET_MESSAGE_TYPE_SHUTDOWN_ACK: 628 case GNUNET_MESSAGE_TYPE_SHUTDOWN_ACK:
629 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Received confirmation for service shutdown.\n"); 629 GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Received confirmation for service shutdown.\n");
630 shutdown_ctx->confirmed = GNUNET_YES; 630 shutdown_ctx->confirmed = GNUNET_YES;
631 GNUNET_CLIENT_receive (shutdown_ctx->sock, &service_shutdown_handler, shutdown_ctx, GNUNET_TIME_UNIT_FOREVER_REL); 631 GNUNET_CLIENT_receive (shutdown_ctx->sock, &service_shutdown_handler, shutdown_ctx, GNUNET_TIME_UNIT_FOREVER_REL);
632 break; 632 break;
@@ -654,7 +654,7 @@ void service_shutdown_cancel (void *cls,
654 const struct GNUNET_SCHEDULER_TaskContext * tc) 654 const struct GNUNET_SCHEDULER_TaskContext * tc)
655{ 655{
656 struct ShutdownContext *shutdown_ctx = cls; 656 struct ShutdownContext *shutdown_ctx = cls;
657 fprintf(stderr, "service_shutdown_cancel called!\n"); 657 GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "service_shutdown_cancel called!\n");
658 shutdown_ctx->cont(shutdown_ctx->cont_cls, GNUNET_SYSERR); 658 shutdown_ctx->cont(shutdown_ctx->cont_cls, GNUNET_SYSERR);
659 GNUNET_CLIENT_disconnect (shutdown_ctx->sock, GNUNET_NO); 659 GNUNET_CLIENT_disconnect (shutdown_ctx->sock, GNUNET_NO);
660 GNUNET_free(shutdown_ctx); 660 GNUNET_free(shutdown_ctx);