Ignore:
Timestamp:
06/28/11 23:31:33 (11 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
bdeb1ff
Parents:
0145b04
Message:

Removed many of the qDebug() output lines (see ticket #10).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sql/sqlengine.cpp

    r0145b04 rcf385cd  
    133133void SqlEngine::addEventToDB(QHash<QString,QString> &aEvent)
    134134{
    135     //LOG_DEBUG(QString("Adding event '%1' to DB").arg(*aEvent));
    136 
    137135    QSqlDatabase db = QSqlDatabase::database();
    138136
     
    148146            track = Track::retrieveByName(conference, name);
    149147            trackId = track.id();
    150             /*qDebug() << QString("DEBUG: Track %1 in DB").arg(name);*/
    151148        }
    152149        catch (OrmNoObjectException &e) {
     
    154151            track.setName(name);
    155152            trackId = track.insert();
    156             /*qDebug() << QString("DEBUG: Track %1 added to DB").arg(name);*/
    157153        }
    158154        QDateTime startDateTime;
    159155        startDateTime.setTimeSpec(Qt::UTC);
    160156        startDateTime = QDateTime(QDate::fromString(aEvent["date"],DATE_FORMAT),QTime::fromString(aEvent["start"],TIME_FORMAT),Qt::UTC);
    161         // qDebug() << "startDateTime: " << startDateTime.toString();
    162157
    163158        bool event_exists = false;
     
    276271        query.bindValue(":room_id", aRoom["id"]);
    277272        if (!query.exec()) qDebug() << "Could not 'execute insert into event_room' query:" << query.lastError();
    278         //LOG_AUTOTEST(query);
    279273    }
    280274}
     
    294288        query.bindValue(":url", aLink["url"]);
    295289        if (!query.exec()) qDebug() << "Error executing 'insert into link' query: " << query.lastError();
    296         //LOG_AUTOTEST(query);
    297290    }
    298291}
     
    388381bool SqlEngine::execQuery(QSqlDatabase &aDatabase, const QString &aQuery)
    389382{
    390     //qDebug() << "\nSQL: " << aQuery;
    391 
    392383    QSqlQuery sqlQuery(aDatabase);
    393384    if( !sqlQuery.exec(aQuery) ){
     
    395386       return false;
    396387    }
    397     else{
    398        //qDebug() << "SQL OK.\n";
    399        return true;
    400     }
     388    return true;
    401389}
    402390
    403391bool SqlEngine::execQueryWithParameter(QSqlDatabase &aDatabase, const QString &aQuery, const QHash<QString, QVariant>& params)
    404392{
    405     qDebug() << "SQL:" << aQuery << "params:" << params;
    406 
    407393    QSqlQuery sqlQuery(aDatabase);
    408394    sqlQuery.prepare(aQuery);
     
    414400       return false;
    415401    }
    416     else{
    417        //qDebug() << "SQL OK.\n";
    418        return true;
    419     }
     402    return true;
    420403}
    421404
Note: See TracChangeset for help on using the changeset viewer.