Remove many log_debug from the database module

This commit is contained in:
louiz’
2017-07-08 18:11:25 +02:00
parent 9fa1852c7e
commit fd7ee48a86
6 changed files with 1 additions and 19 deletions
+1 -4
View File
@@ -23,7 +23,6 @@ struct Query
Statement prepare(sqlite3* db)
{
sqlite3_stmt* stmt;
log_debug(this->body);
auto res = sqlite3_prepare(db, this->body.data(), static_cast<int>(this->body.size()) + 1,
&stmt, nullptr);
if (res != SQLITE_OK)
@@ -36,9 +35,7 @@ struct Query
for (const std::string& param: this->params)
{
if (sqlite3_bind_text(statement.get(), i, param.data(), static_cast<int>(param.size()), SQLITE_TRANSIENT) != SQLITE_OK)
log_debug("Failed to bind ", param, " to param ", i);
else
log_debug("Bound ", param, " to ", i);
log_error("Failed to bind ", param, " to param ", i);
i++;
}