X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fsqlitestorage.cpp;h=ef510e7c9d8607a7a94d1eb09326a4670dfa5793;hb=adff595449304996ee1a5b21f9ee768f83e0a4b1;hp=7c46333d3044ef512311ea7e352dbb7d9a66398c;hpb=a49409f619ba884568a021ea2e0ec94bcc2491f3;p=quassel.git diff --git a/src/core/sqlitestorage.cpp b/src/core/sqlitestorage.cpp index 7c46333d..ef510e7c 100644 --- a/src/core/sqlitestorage.cpp +++ b/src/core/sqlitestorage.cpp @@ -269,7 +269,7 @@ bool SqliteStorage::removeNetwork(UserId user, const NetworkId &networkId) { if(withTransaction) { sync(); if(!logDb().transaction()) { - quWarning() << "SqliteStorage::removeNetwork(): cannot start transaction. continuing with out rollback support!"; + qWarning() << "SqliteStorage::removeNetwork(): cannot start transaction. continuing with out rollback support!"; withTransaction = false; } } @@ -503,19 +503,19 @@ BufferInfo SqliteStorage::getBufferInfo(UserId user, const NetworkId &networkId, query->exec(); if(!query->first()) { watchQuery(query); - quWarning() << "unable to create BufferInfo for:" << user << networkId << buffer; + qWarning() << "unable to create BufferInfo for:" << user << networkId << buffer; return BufferInfo(); } } BufferInfo bufferInfo = BufferInfo(query->value(0).toInt(), networkId, (BufferInfo::Type)query->value(1).toInt(), 0, buffer); if(query->next()) { - quError() << "SqliteStorage::getBufferInfo(): received more then one Buffer!"; - quError() << " Query:" << query->lastQuery(); - quError() << " bound Values:"; + qCritical() << "SqliteStorage::getBufferInfo(): received more then one Buffer!"; + qCritical() << " Query:" << query->lastQuery(); + qCritical() << " bound Values:"; QList list = query->boundValues().values(); for (int i = 0; i < list.size(); ++i) - quError() << i << ":" << list.at(i).toString().toAscii().data(); + qCritical() << i << ":" << list.at(i).toString().toAscii().data(); Q_ASSERT(false); } @@ -825,7 +825,7 @@ bool SqliteStorage::init(const QVariantMap &settings) { getPasswordsQuery.exec(); if(!watchQuery(&getPasswordsQuery)) { - quError() << "unable to migrate to new password format!"; + qCritical() << "unable to migrate to new password format!"; return false; } @@ -843,6 +843,6 @@ bool SqliteStorage::init(const QVariantMap &settings) { watchQuery(&setPasswordsQuery); } - quDebug() << "successfully migrated passwords!"; + qDebug() << "successfully migrated passwords!"; return true; }