-do warn
authorChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 09:48:03 +0000 (09:48 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 09:48:03 +0000 (09:48 +0000)
src/datastore/plugin_datastore_sqlite.c

index 765c7f34adb4132399c32964bd20d0092b1de04d..cd5ae394fcaa0f68e9a8206b7f0b49f9ecdb45a6 100644 (file)
@@ -420,11 +420,9 @@ database_shutdown (struct Plugin *plugin)
                        "Closing statement %p\n", stmt);
 #endif
       result = sqlite3_finalize (stmt);
-#if DEBUG_SQLITE
       if (result != SQLITE_OK)
-        GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "sqlite",
+        GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, "sqlite",
                          "Failed to close statement %p: %d\n", stmt, result);
-#endif
       stmt = sqlite3_next_stmt (plugin->dbh, NULL);
     }
     result = sqlite3_close (plugin->dbh);