diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-04-27 19:04:31 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-04-27 19:04:31 +0000 |
commit | 146640179b0eca9bf0054da5f4309d4a729a03bf (patch) | |
tree | 95f5a88c6b1bab9a2721e98df0f96d3dc7d249b8 /src/datastore/plugin_datastore_sqlite.c | |
parent | 65760006a64f9af00c862afb6b909066b644554a (diff) |
pass repl
git-svn-id: https://gnunet.org/svn/gnunet@15085 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/datastore/plugin_datastore_sqlite.c')
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index 3710b7eb7d..f58c5bd281 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c @@ -31,7 +31,7 @@ /** * Enable or disable logging debug messages. */ -#define DEBUG_SQLITE GNUNET_NO +#define DEBUG_SQLITE GNUNET_YES /** * We allocate items on the stack at times. To prevent a stack @@ -475,7 +475,7 @@ sqlite_plugin_put (void *cls, #if DEBUG_SQLITE GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "sqlite", - "Storing in database block with type %u/key `%s'/priority %u/expiration %llu (%lld).\n", + "Storing in database block with type %u/key `%s'/priority %u/expiration in %llu ms (%lld).\n", type, GNUNET_h2s(key), priority, @@ -650,6 +650,12 @@ execute_get (struct Plugin *plugin, break; } expiration.abs_value = sqlite3_column_int64 (stmt, 3); +#if DEBUG_SQLITE + GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, + "sqlite", + "Found reply in database with expiration %llu\n", + (unsigned long long) expiration.abs_value); +#endif ret = proc (proc_cls, sqlite3_column_blob (stmt, 4) /* key */, size, @@ -1175,7 +1181,7 @@ libgnunet_plugin_datastore_sqlite_done (void *cls) #if DEBUG_SQLITE GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "sqlite", - "sqlite plugin is finished doneing\n"); + "sqlite plugin is finished\n"); #endif return NULL; } |