gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r11330 - gnunet/src/arm
Date: Tue, 11 May 2010 21:08:27 +0200

Author: nevans
Date: 2010-05-11 21:08:27 +0200 (Tue, 11 May 2010)
New Revision: 11330

Modified:
   gnunet/src/arm/arm_api.c
Log:
reduce debugging messages

Modified: gnunet/src/arm/arm_api.c
===================================================================
--- gnunet/src/arm/arm_api.c    2010-05-11 19:05:46 UTC (rev 11329)
+++ gnunet/src/arm/arm_api.c    2010-05-11 19:08:27 UTC (rev 11330)
@@ -121,20 +121,20 @@
 {
   struct ShutdownContext *shutdown_ctx = cls;
 
-  if ((msg == NULL) && (shutdown_ctx->confirmed != GNUNET_YES))   
+  if ((msg == NULL) && (shutdown_ctx->confirmed != GNUNET_YES))
     {
       /* Means the other side closed the connection and never confirmed a 
shutdown */
-      GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 
+      GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                  "Service handle shutdown before ACK!\n");
       if (shutdown_ctx->cont != NULL)
-        shutdown_ctx->cont(shutdown_ctx->cont_cls, GNUNET_SYSERR);      
+        shutdown_ctx->cont(shutdown_ctx->cont_cls, GNUNET_SYSERR);
       GNUNET_SCHEDULER_cancel(shutdown_ctx->sched, shutdown_ctx->cancel_task);
       GNUNET_CLIENT_disconnect (shutdown_ctx->sock, GNUNET_NO);
       GNUNET_free(shutdown_ctx);
     }
   else if ((msg == NULL) && (shutdown_ctx->confirmed == GNUNET_YES))
     {
-      GNUNET_log(GNUNET_ERROR_TYPE_WARNING, 
+      GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
                 "Service shutdown complete.\n");
       if (shutdown_ctx->cont != NULL)
         shutdown_ctx->cont(shutdown_ctx->cont_cls, GNUNET_NO);
@@ -149,20 +149,20 @@
       switch (ntohs(msg->type))
        {
        case GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN_ACK:
-         GNUNET_log(GNUNET_ERROR_TYPE_WARNING,
+         GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
                     "Received confirmation for service shutdown.\n");
          shutdown_ctx->confirmed = GNUNET_YES;
-         GNUNET_CLIENT_receive (shutdown_ctx->sock, 
-                                &service_shutdown_handler, 
-                                shutdown_ctx, 
+         GNUNET_CLIENT_receive (shutdown_ctx->sock,
+                                &service_shutdown_handler,
+                                shutdown_ctx,
                                 GNUNET_TIME_UNIT_FOREVER_REL);
          break;
        default: /* Fall through */
-         GNUNET_log(GNUNET_ERROR_TYPE_WARNING, 
+         GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
                     "Service shutdown refused!\n");
          if (shutdown_ctx->cont != NULL)
            shutdown_ctx->cont(shutdown_ctx->cont_cls, GNUNET_YES);
-         
+
          GNUNET_SCHEDULER_cancel(shutdown_ctx->sched, 
shutdown_ctx->cancel_task);
          GNUNET_CLIENT_disconnect (shutdown_ctx->sock, GNUNET_NO);
          GNUNET_free(shutdown_ctx);
@@ -214,11 +214,11 @@
     }
 
   GNUNET_CLIENT_receive (shutdown_ctx->sock,
-                        &service_shutdown_handler, shutdown_ctx, 
+                        &service_shutdown_handler, shutdown_ctx,
                         GNUNET_TIME_UNIT_FOREVER_REL);
-  shutdown_ctx->cancel_task = GNUNET_SCHEDULER_add_delayed 
(shutdown_ctx->sched, 
-                                                           
GNUNET_TIME_absolute_get_remaining(shutdown_ctx->timeout), 
-                                                           
&service_shutdown_cancel, 
+  shutdown_ctx->cancel_task = GNUNET_SCHEDULER_add_delayed 
(shutdown_ctx->sched,
+                                                           
GNUNET_TIME_absolute_get_remaining(shutdown_ctx->timeout),
+                                                           
&service_shutdown_cancel,
                                                            shutdown_ctx);
   msg = (struct GNUNET_MessageHeader *) buf;
   msg->type = htons (GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN);




reply via email to

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