aboutsummaryrefslogtreecommitdiff
path: root/lib/database.cpp
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 /lib/database.cpp
parenta0ce17dfe793c924205b449c026f2f776b032ff3 (diff)
downloadlibquotient-3054255cba206c91e3bdf0ea42fde39d51261e6a.tar.gz
libquotient-3054255cba206c91e3bdf0ea42fde39d51261e6a.zip
Update logging categories
Diffstat (limited to 'lib/database.cpp')
-rw-r--r--lib/database.cpp4
1 files changed, 2 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);"));