diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-20 07:21:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-20 07:21:07 +0000 |
commit | 3d0d16299831c5a3a30f26c7a384fbfbed4e0486 (patch) | |
tree | 55a487be2e78c8b2c43a8d723710a75f965279ec /src/datastore/gnunet-service-datastore.c | |
parent | 09cfcd83bd680bd5178c7fead1c6927fcf45b352 (diff) | |
download | gnunet-3d0d16299831c5a3a30f26c7a384fbfbed4e0486.tar.gz gnunet-3d0d16299831c5a3a30f26c7a384fbfbed4e0486.zip |
fix log calls
Diffstat (limited to 'src/datastore/gnunet-service-datastore.c')
-rw-r--r-- | src/datastore/gnunet-service-datastore.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index f80abef06..0fe1263ce 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c | |||
@@ -849,8 +849,16 @@ handle_put (void *cls, | |||
849 | GNUNET_TIME_absolute_ntoh(dm->expiration), | 849 | GNUNET_TIME_absolute_ntoh(dm->expiration), |
850 | &msg); | 850 | &msg); |
851 | if (GNUNET_OK == ret) | 851 | if (GNUNET_OK == ret) |
852 | GNUNET_CONTAINER_bloomfilter_add (filter, | 852 | { |
853 | &dm->key); | 853 | GNUNET_CONTAINER_bloomfilter_add (filter, |
854 | &dm->key); | ||
855 | #if DEBUG_DATASTORE | ||
856 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
857 | "Successfully stored %u bytes under key `%s'\n", | ||
858 | size, | ||
859 | GNUNET_h2s (&dm->key)); | ||
860 | #endif | ||
861 | } | ||
854 | transmit_status (client, | 862 | transmit_status (client, |
855 | (GNUNET_SYSERR == ret) ? GNUNET_SYSERR : GNUNET_OK, | 863 | (GNUNET_SYSERR == ret) ? GNUNET_SYSERR : GNUNET_OK, |
856 | msg); | 864 | msg); |
@@ -896,8 +904,9 @@ handle_get (void *cls, | |||
896 | /* don't bother database... */ | 904 | /* don't bother database... */ |
897 | #if DEBUG_DATASTORE | 905 | #if DEBUG_DATASTORE |
898 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 906 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
899 | "Empty result set for `%s' request.\n", | 907 | "Empty result set for `%s' request for `%s'.\n", |
900 | "GET"); | 908 | "GET", |
909 | GNUNET_h2s (&msg->key)); | ||
901 | #endif | 910 | #endif |
902 | GNUNET_SERVER_client_keep (client); | 911 | GNUNET_SERVER_client_keep (client); |
903 | transmit_item (client, | 912 | transmit_item (client, |