From: Christian Grothoff Date: Tue, 11 Oct 2016 15:12:43 +0000 (+0000) Subject: logging X-Git-Tag: initial-import-from-subversion-38251~126 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4e6147ce59183ef1ad3befd99bb5455e53e2803a;p=oweals%2Fgnunet.git logging --- diff --git a/src/psycstore/plugin_psycstore_mysql.c b/src/psycstore/plugin_psycstore_mysql.c index 2ce5775e7..010673341 100644 --- a/src/psycstore/plugin_psycstore_mysql.c +++ b/src/psycstore/plugin_psycstore_mysql.c @@ -1075,12 +1075,17 @@ fragment_row (struct GNUNET_MYSQL_StatementHandle *stmt, break; default: - LOG_MYSQL(plugin, GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, - "mysql extract_result", stmt); + LOG_MYSQL (plugin, GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, + "mysql extract_result", stmt); } } while (GNUNET_YES == sql_ret); + // for debugging + if (GNUNET_NO == ret) + GNUNET_log (GNUNET_ERROR_TYPE_WARNING | GNUNET_ERROR_TYPE_BULK, + "Empty result set\n"); + return ret; }