diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-30 09:18:59 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-30 09:18:59 +0000 |
commit | 3056a8d79ddf74b3b3097455323fd5bb531bd87f (patch) | |
tree | a485278f8a256704a6b96fd90ab5d345aac986c2 /src/namestore/plugin_namestore_sqlite.c | |
parent | feebaa1b4e5236d837d7f9e55562426b70fadf5a (diff) | |
download | gnunet-3056a8d79ddf74b3b3097455323fd5bb531bd87f.tar.gz gnunet-3056a8d79ddf74b3b3097455323fd5bb531bd87f.zip |
-more logging
Diffstat (limited to 'src/namestore/plugin_namestore_sqlite.c')
-rw-r--r-- | src/namestore/plugin_namestore_sqlite.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/namestore/plugin_namestore_sqlite.c b/src/namestore/plugin_namestore_sqlite.c index 6551dd4a2..04291cd69 100644 --- a/src/namestore/plugin_namestore_sqlite.c +++ b/src/namestore/plugin_namestore_sqlite.c | |||
@@ -480,6 +480,9 @@ namestore_sqlite_cache_block (void *cls, | |||
480 | return GNUNET_SYSERR; | 480 | return GNUNET_SYSERR; |
481 | 481 | ||
482 | } | 482 | } |
483 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
484 | "Caching block under derived key `%s'\n", | ||
485 | GNUNET_h2s (&query)); | ||
483 | n = sqlite3_step (plugin->cache_block); | 486 | n = sqlite3_step (plugin->cache_block); |
484 | if (SQLITE_OK != sqlite3_reset (plugin->cache_block)) | 487 | if (SQLITE_OK != sqlite3_reset (plugin->cache_block)) |
485 | LOG_SQLITE (plugin, GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, | 488 | LOG_SQLITE (plugin, GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, |
@@ -534,7 +537,6 @@ namestore_sqlite_lookup_block (void *cls, | |||
534 | "sqlite3_reset"); | 537 | "sqlite3_reset"); |
535 | return GNUNET_SYSERR; | 538 | return GNUNET_SYSERR; |
536 | } | 539 | } |
537 | |||
538 | ret = GNUNET_NO; | 540 | ret = GNUNET_NO; |
539 | if (SQLITE_ROW == (sret = sqlite3_step (plugin->lookup_block))) | 541 | if (SQLITE_ROW == (sret = sqlite3_step (plugin->lookup_block))) |
540 | { | 542 | { |
@@ -550,6 +552,9 @@ namestore_sqlite_lookup_block (void *cls, | |||
550 | } | 552 | } |
551 | else | 553 | else |
552 | { | 554 | { |
555 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
556 | "Found block under derived key `%s'\n", | ||
557 | GNUNET_h2s (query)); | ||
553 | iter (iter_cls, block); | 558 | iter (iter_cls, block); |
554 | ret = GNUNET_YES; | 559 | ret = GNUNET_YES; |
555 | } | 560 | } |
@@ -561,6 +566,12 @@ namestore_sqlite_lookup_block (void *cls, | |||
561 | LOG_SQLITE (plugin, GNUNET_ERROR_TYPE_ERROR, "sqlite_step"); | 566 | LOG_SQLITE (plugin, GNUNET_ERROR_TYPE_ERROR, "sqlite_step"); |
562 | ret = GNUNET_SYSERR; | 567 | ret = GNUNET_SYSERR; |
563 | } | 568 | } |
569 | else | ||
570 | { | ||
571 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
572 | "No block found under derived key `%s'\n", | ||
573 | GNUNET_h2s (query)); | ||
574 | } | ||
564 | } | 575 | } |
565 | if (SQLITE_OK != sqlite3_reset (plugin->lookup_block)) | 576 | if (SQLITE_OK != sqlite3_reset (plugin->lookup_block)) |
566 | LOG_SQLITE (plugin, | 577 | LOG_SQLITE (plugin, |