gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14354 - gnunet/src/arm


From: gnunet
Subject: [GNUnet-SVN] r14354 - gnunet/src/arm
Date: Sat, 5 Feb 2011 13:38:04 +0100

Author: nevans
Date: 2011-02-05 13:38:04 +0100 (Sat, 05 Feb 2011)
New Revision: 14354

Modified:
   gnunet/src/arm/arm_api.c
Log:
clean up debug messages

Modified: gnunet/src/arm/arm_api.c
===================================================================
--- gnunet/src/arm/arm_api.c    2011-02-05 12:30:56 UTC (rev 14353)
+++ gnunet/src/arm/arm_api.c    2011-02-05 12:38:04 UTC (rev 14354)
@@ -107,9 +107,11 @@
 
   if ((msg == NULL) && (shutdown_ctx->confirmed != GNUNET_YES))
     {
+#if DEBUG_ARM
       /* Means the other side closed the connection and never confirmed a 
shutdown */
-      GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                  "Service handle shutdown before ACK!\n");
+#endif
       if (shutdown_ctx->cont != NULL)
         shutdown_ctx->cont(shutdown_ctx->cont_cls, GNUNET_SYSERR);
       GNUNET_SCHEDULER_cancel(shutdown_ctx->cancel_task);
@@ -171,7 +173,9 @@
                               const struct GNUNET_SCHEDULER_TaskContext * tc)
 {
   struct ShutdownContext *shutdown_ctx = cls;
-  GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "service_shutdown_cancel called!\n");
+#if DEBUG_ARM
+  GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "service_shutdown_cancel called!\n");
+#endif
   shutdown_ctx->cont(shutdown_ctx->cont_cls, GNUNET_SYSERR);
   GNUNET_CLIENT_disconnect (shutdown_ctx->sock, GNUNET_NO);
   GNUNET_free(shutdown_ctx);
@@ -622,6 +626,9 @@
               _("Asked to start service `%s' within %llu ms\n"), service_name,
              (unsigned long long) timeout.rel_value);
 #endif
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              _("Asked to start service `%s' within %llu ms\n"), service_name,
+              (unsigned long long) timeout.rel_value);
   if (0 == strcasecmp ("arm", service_name))
     {
       slen = strlen ("arm") + 1;
@@ -640,12 +647,15 @@
       client = GNUNET_CLIENT_connect ("arm", h->cfg);
       if (client == NULL)
        {
+          GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "arm_api, GNUNET_CLIENT_connect 
returned NULL\n");
          cb (cb_cls, GNUNET_SYSERR);
          return;
        }
+      GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "arm_api, GNUNET_CLIENT_connect 
returned non-NULL\n");
       GNUNET_CLIENT_ignore_shutdown (client, GNUNET_YES);
       h->client = client;
     }
+  GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "arm_api, h->client non-NULL\n");
   change_service (h, service_name, timeout, cb, cb_cls, 
GNUNET_MESSAGE_TYPE_ARM_START);
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]