logging
authorChristian Grothoff <christian@grothoff.org>
Tue, 25 May 2010 15:55:09 +0000 (15:55 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 25 May 2010 15:55:09 +0000 (15:55 +0000)
src/transport/gnunet-service-transport.c

index 9105bde8fa7923dca70beb41845cb2b1a7e1adf7..42f873d762e177e065b17f33b39601e5a5040f37 100644 (file)
@@ -2617,9 +2617,11 @@ setup_new_neighbour (const struct GNUNET_PeerIdentity *peer,
   struct TransportPlugin *tp;
   struct ReadyList *rl;
 
+#if DEBUG_TRANSPORT
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
              "Setting up state for neighbour `%4s'\n",
              GNUNET_i2s (peer));
+#endif
   GNUNET_assert (our_hello != NULL);
   GNUNET_STATISTICS_update (stats,
                            gettext_noop ("# active neighbours"),
@@ -3836,10 +3838,12 @@ process_hello (struct TransportPlugin *plugin,
                               chvc->hello,
                               GNUNET_TIME_absolute_get ()).value > 0)
        {
+#if DEBUG_TRANSPORT
          GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                      "Received duplicate `%s' message for `%4s'; ignored\n",
                      "HELLO", 
                      GNUNET_i2s (&target));
+#endif
          return GNUNET_OK; /* validation already pending */
        }
       if (GNUNET_HELLO_size(hello) == GNUNET_HELLO_size (chvc->hello))