logging
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 6 Oct 2011 13:37:05 +0000 (13:37 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 6 Oct 2011 13:37:05 +0000 (13:37 +0000)
src/transport/plugin_transport_http_client.c

index 4f05cb9bf161a987d58f106b08b27902653c049f..4c249be157be091a78c13115e1525432c377bc15 100644 (file)
@@ -299,7 +299,6 @@ client_receive_mst_cb (void *cls, void *client,
                      const struct GNUNET_MessageHeader *message)
 {
   struct Session *s = cls;
-  //struct Plugin *plugin = s->plugin;
   struct GNUNET_TIME_Relative delay;
 
   delay = http_plugin_receive (s, &s->target, message, s, s->addr, s->addrlen);
@@ -308,6 +307,7 @@ client_receive_mst_cb (void *cls, void *client,
   if (GNUNET_TIME_absolute_get().abs_value < s->next_receive.abs_value)
   {
 #if VERBOSE_CLIENT
+    struct Plugin *plugin = s->plugin;
     GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, "Client: peer `%s' address `%s' next read delayed for %llu ms\n",
                 GNUNET_i2s (&s->target), GNUNET_a2s (s->addr, s->addrlen), delay);
 #endif