From fd5b124b02eaf4ec8eecf231342362d26b879593 Mon Sep 17 00:00:00 2001 From: alex-z Date: Fri, 28 Apr 2023 10:46:10 +0200 Subject: [PATCH] Remove some SQL debug logs to unclutter the output. Signed-off-by: alex-z --- src/common/ownsql.cpp | 4 ---- src/common/ownsql.h | 3 --- 2 files changed, 7 deletions(-) diff --git a/src/common/ownsql.cpp b/src/common/ownsql.cpp index 736f7f03f22a6..7b4fbd225dcfc 100644 --- a/src/common/ownsql.cpp +++ b/src/common/ownsql.cpp @@ -292,8 +292,6 @@ bool SqlQuery::isPragma() bool SqlQuery::exec() { - qCDebug(lcSql) << "SQL exec" << _sql; - if (!_stmt) { qCWarning(lcSql) << "Can't exec query, statement unprepared."; return false; @@ -324,8 +322,6 @@ bool SqlQuery::exec() qCWarning(lcSql) << "IOERR system errno: " << sqlite3_system_errno(_db); #endif } - } else { - qCDebug(lcSql) << "Last exec affected" << numRowsAffected() << "rows."; } return (_errId == SQLITE_DONE); // either SQLITE_ROW or SQLITE_DONE } diff --git a/src/common/ownsql.h b/src/common/ownsql.h index a3476e20d09b4..c9038d0e51065 100644 --- a/src/common/ownsql.h +++ b/src/common/ownsql.h @@ -135,20 +135,17 @@ class OCSYNC_EXPORT SqlQuery template::value, int>::type = 0> void bindValue(int pos, const T &value) { - qCDebug(lcSql) << "SQL bind" << pos << value; bindValueInternal(pos, static_cast(value)); } template::value, int>::type = 0> void bindValue(int pos, const T &value) { - qCDebug(lcSql) << "SQL bind" << pos << value; bindValueInternal(pos, value); } void bindValue(int pos, const QByteArray &value) { - qCDebug(lcSql) << "SQL bind" << pos << QString::fromUtf8(value); bindValueInternal(pos, value); }