more debug msgs
authorChristian Grothoff <christian@grothoff.org>
Sun, 25 Oct 2009 20:07:08 +0000 (20:07 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 25 Oct 2009 20:07:08 +0000 (20:07 +0000)
src/datastore/datastore_api.c

index a64e3b049c9767c793d19c2c2e54751e4864c14a..064f36025a2c4025c667b22bb67afba3273f2aa7 100644 (file)
@@ -706,6 +706,12 @@ GNUNET_DATASTORE_remove (struct GNUNET_DATASTORE_Handle *h,
   struct DataMessage *dm;
   size_t msize;
 
+#if DEBUG_DATASTORE
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+             "Asked to remove %u bytes of data under key `%s'\n",
+             size,
+             GNUNET_h2s (key));
+#endif
   msize = sizeof(struct DataMessage) + size;
   GNUNET_assert (msize <= GNUNET_SERVER_MAX_MESSAGE_SIZE);
   dm = (struct DataMessage*) &h[1];