aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2021-12-08 23:14:29 +0100
committerTobias Fella <fella@posteo.de>2021-12-08 23:14:29 +0100
commit3054255cba206c91e3bdf0ea42fde39d51261e6a (patch)
tree1f1bea4bfe8e4710e249c676699915c439427069
parenta0ce17dfe793c924205b449c026f2f776b032ff3 (diff)
downloadlibquotient-3054255cba206c91e3bdf0ea42fde39d51261e6a.tar.gz
libquotient-3054255cba206c91e3bdf0ea42fde39d51261e6a.zip
Update logging categories
-rw-r--r--lib/database.cpp4
-rw-r--r--lib/logging.cpp1
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/database.cpp b/lib/database.cpp
index 5372ad7e..9bdcd9e6 100644
--- a/lib/database.cpp
+++ b/lib/database.cpp
@@ -36,7 +36,7 @@ int Database::version()
if (query.next()) {
bool ok;
int value = query.value(0).toInt(&ok);
- qDebug() << "Database version" << value;
+ qCDebug(DATABASE) << "Database version" << value;
if (ok)
return value;
} else {
@@ -78,7 +78,7 @@ void Database::commit()
void Database::migrateTo1()
{
- qDebug() << "Migrating database to version 1";
+ qCDebug(DATABASE) << "Migrating database to version 1";
transaction();
execute(QStringLiteral("CREATE TABLE accounts (matrixId TEXT UNIQUE, pickle TEXT);"));
execute(QStringLiteral("CREATE TABLE olm_sessions (matrixId TEXT, senderKey TEXT, sessionId TEXT, pickle TEXT);"));
diff --git a/lib/logging.cpp b/lib/logging.cpp
index 15eac69d..460caced 100644
--- a/lib/logging.cpp
+++ b/lib/logging.cpp
@@ -19,3 +19,4 @@ LOGGING_CATEGORY(SYNCJOB, "quotient.jobs.sync")
LOGGING_CATEGORY(THUMBNAILJOB, "quotient.jobs.thumbnail")
LOGGING_CATEGORY(NETWORK, "quotient.network")
LOGGING_CATEGORY(PROFILER, "quotient.profiler")
+LOGGING_CATEGORY(DATABASE, "quotient.database")