X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fabstractsqlstorage.cpp;h=d99e32ce1a414c58d51acfcebfff1f24e119c8b6;hb=63cd73c7a036ce3c4f6ca7428a7c0939c1640a1e;hp=a3ac2708e3b8b542807adb13f2ffc042c0d6457d;hpb=5c1ae5b1f0e743096538e3a2307565c05124be11;p=quassel.git diff --git a/src/core/abstractsqlstorage.cpp b/src/core/abstractsqlstorage.cpp index a3ac2708..d99e32ce 100644 --- a/src/core/abstractsqlstorage.cpp +++ b/src/core/abstractsqlstorage.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-07 by the Quassel IRC Team * + * Copyright (C) 2005-07 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -45,7 +45,6 @@ QSqlDatabase AbstractSqlStorage::logDb() { if(!_connectionPool.contains(QThread::currentThread())) addConnectionToPool(); - qDebug() << "using logDb" << _connectionPool[QThread::currentThread()]->name() << QThread::currentThread(); return QSqlDatabase::database(_connectionPool[QThread::currentThread()]->name()); } @@ -61,7 +60,6 @@ void AbstractSqlStorage::addConnectionToPool() { int connectionId = _nextConnectionId++; Connection *connection = new Connection(QLatin1String(QString("quassel_connection_%1").arg(connectionId).toLatin1())); - qDebug() << "new connection" << connection->name() << currentThread << QLatin1String(QString("quassel_connection_%1").arg(connectionId).toLatin1()); connection->moveToThread(currentThread); connect(this, SIGNAL(destroyed()), connection, SLOT(deleteLater())); connect(currentThread, SIGNAL(destroyed()), connection, SLOT(deleteLater())); @@ -102,7 +100,7 @@ bool AbstractSqlStorage::init(const QVariantMap &settings) { } if(installedSchemaVersion() < schemaVersion()) { - qWarning() << "Installed Schema is not up to date. Upgrading..."; + qWarning() << qPrintable(tr("Installed Schema (version %1) is not up to date. Upgrading to version %2...").arg(installedSchemaVersion()).arg(schemaVersion())); if(!upgradeDb()) return false; }