gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r11516 - gnunet/src/datastore


From: gnunet
Subject: [GNUnet-SVN] r11516 - gnunet/src/datastore
Date: Wed, 26 May 2010 10:04:05 +0200

Author: grothoff
Date: 2010-05-26 10:04:05 +0200 (Wed, 26 May 2010)
New Revision: 11516

Modified:
   gnunet/src/datastore/gnunet-service-datastore.c
Log:
nicer logging

Modified: gnunet/src/datastore/gnunet-service-datastore.c
===================================================================
--- gnunet/src/datastore/gnunet-service-datastore.c     2010-05-26 07:58:59 UTC 
(rev 11515)
+++ gnunet/src/datastore/gnunet-service-datastore.c     2010-05-26 08:04:05 UTC 
(rev 11516)
@@ -315,7 +315,9 @@
   plugin->api->next_request (next_cls, GNUNET_NO);
 #if DEBUG_DATASTORE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-             "Deleting content that expired %llu ms ago\n",
+             "Deleting content `%s' of type %u that expired %llu ms ago\n",
+             GNUNET_h2s (key),
+             type,
              (unsigned long long) (now.value - expiration.value));
 #endif
   GNUNET_STATISTICS_update (stats,
@@ -396,8 +398,10 @@
                             (0 == *need) ? GNUNET_YES : GNUNET_NO);
 #if DEBUG_DATASTORE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-             "Deleting %llu bytes of low-priority content (still trying to 
free another %llu bytes)\n",
+             "Deleting %llu bytes of low-priority content `%s' of type %u 
(still trying to free another %llu bytes)\n",
              size + GNUNET_DATASTORE_ENTRY_OVERHEAD,
+             GNUNET_h2s (key),
+             type,
              *need);
 #endif
   GNUNET_STATISTICS_update (stats,
@@ -687,8 +691,10 @@
   memcpy (&dm[1], data, size);
 #if DEBUG_DATASTORE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-             "Transmitting `%s' message\n",
-             "DATA");
+             "Transmitting `%s' message for `%s' of type %u\n",
+             "DATA",
+             GNUNET_h2s (key),
+             type);
 #endif
   GNUNET_STATISTICS_update (stats,
                            gettext_noop ("# results found"),
@@ -883,9 +889,10 @@
     }
 #if DEBUG_DATASTORE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-             "Processing `%s' request for `%s'\n",
+             "Processing `%s' request for `%s' of type %u\n",
              "PUT",
-             GNUNET_h2s (&dm->key));
+             GNUNET_h2s (&dm->key),
+             ntohl (dm->type));
 #endif
   rid = ntohl(dm->rid);
   size = ntohl(dm->size);
@@ -925,8 +932,9 @@
                                        &dm->key);
 #if DEBUG_DATASTORE
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                 "Successfully stored %u bytes under key `%s'\n",
+                 "Successfully stored %u bytes of type %u under key `%s'\n",
                  size,
+                 ntohl(dm->type),
                  GNUNET_h2s (&dm->key));
 #endif
     }
@@ -982,7 +990,7 @@
       /* don't bother database... */
 #if DEBUG_DATASTORE
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                 "Empty result set for `%s' request for `%s'.\n",
+                 "Empty result set for `%s' request for `%s' (bloomfilter).\n",
                  "GET",
                  GNUNET_h2s (&msg->key));
 #endif 
@@ -1124,10 +1132,11 @@
   rc->found = GNUNET_YES;
 #if DEBUG_DATASTORE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-             "Item %llu matches `%s' request for key `%s'.\n",
+             "Item %llu matches `%s' request for key `%s' and type %u.\n",
              (unsigned long long) uid,
              "REMOVE",
-             GNUNET_h2s (key));
+             GNUNET_h2s (key),
+             type);
 #endif 
   GNUNET_STATISTICS_update (stats,
                            gettext_noop ("# bytes removed (explicit request)"),
@@ -1164,9 +1173,10 @@
     }
 #if DEBUG_DATASTORE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-             "Processing `%s' request for `%s'\n",
+             "Processing `%s' request for `%s' of type %u\n",
              "REMOVE",
-             GNUNET_h2s (&dm->key));
+             GNUNET_h2s (&dm->key),
+             ntohl (dm->type));
 #endif
   GNUNET_STATISTICS_update (stats,
                            gettext_noop ("# REMOVE requests received"),




reply via email to

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