logging
authorChristian Grothoff <christian@grothoff.org>
Tue, 11 Oct 2016 15:12:43 +0000 (15:12 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 11 Oct 2016 15:12:43 +0000 (15:12 +0000)
src/psycstore/plugin_psycstore_mysql.c

index 2ce5775e7bf38da5f159e6e25144ab86bbdfda60..010673341b3db00ca73dbb3219071653bab6d07c 100644 (file)
@@ -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;
 }