]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Remove some SQL debug logs to unclutter the output.
authoralex-z <blackslayer4@gmail.com>
Fri, 28 Apr 2023 08:46:10 +0000 (10:46 +0200)
committerallexzander <allexzander@users.noreply.github.com>
Thu, 4 May 2023 12:42:10 +0000 (14:42 +0200)
Signed-off-by: alex-z <blackslayer4@gmail.com>
src/common/ownsql.cpp
src/common/ownsql.h

index 736f7f03f22a6cffafe05495f48769e9ea836baa..7b4fbd225dcfc3466b83dda371b7e1b4a075e004 100644 (file)
@@ -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
     }
index a3476e20d09b41fe9cd741ff34e606b1ec225321..c9038d0e51065c16915640d9a4d27d5465cb6a93 100644 (file)
@@ -135,20 +135,17 @@ public:
     template<class T, typename std::enable_if<std::is_enum<T>::value, int>::type = 0>
     void bindValue(int pos, const T &value)
     {
-        qCDebug(lcSql) << "SQL bind" << pos << value;
         bindValueInternal(pos, static_cast<int>(value));
     }
 
     template<class T, typename std::enable_if<!std::is_enum<T>::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);
     }