aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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")