1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-07 06:36:55 +02:00

More tomahawk debugs

This commit is contained in:
Leo Franchi
2011-09-15 21:00:23 -04:00
parent 4ca29feab1
commit 5ceb04e571

View File

@@ -187,7 +187,7 @@ DatabaseWorker::doWork()
} }
catch( const char * msg ) catch( const char * msg )
{ {
qDebug() << endl tLog() << endl
<< "*ERROR* processing databasecommand:" << "*ERROR* processing databasecommand:"
<< cmd->commandname() << cmd->commandname()
<< msg << msg
@@ -245,7 +245,7 @@ DatabaseWorker::logOp( DatabaseCommandLoggable* command )
if ( command->singletonCmd() ) if ( command->singletonCmd() )
{ {
qDebug() << "Singleton command, deleting previous oplog commands"; tDebug() << "Singleton command, deleting previous oplog commands";
TomahawkSqlQuery oplogdelquery = m_dbimpl->newquery(); TomahawkSqlQuery oplogdelquery = m_dbimpl->newquery();
oplogdelquery.prepare( QString( "DELETE FROM oplog WHERE source %1 AND singleton = 'true' AND command = ?" ) oplogdelquery.prepare( QString( "DELETE FROM oplog WHERE source %1 AND singleton = 'true' AND command = ?" )
@@ -255,7 +255,7 @@ DatabaseWorker::logOp( DatabaseCommandLoggable* command )
oplogdelquery.exec(); oplogdelquery.exec();
} }
qDebug() << "Saving to oplog:" << command->commandname() tDebug() << "Saving to oplog:" << command->commandname()
<< "bytes:" << ba.length() << "bytes:" << ba.length()
<< "guid:" << command->guid(); << "guid:" << command->guid();
@@ -268,7 +268,7 @@ DatabaseWorker::logOp( DatabaseCommandLoggable* command )
oplogquery.bindValue( 5, ba ); oplogquery.bindValue( 5, ba );
if( !oplogquery.exec() ) if( !oplogquery.exec() )
{ {
qDebug() << "Error saving to oplog"; tLog() << "Error saving to oplog";
throw "Failed to save to oplog"; throw "Failed to save to oplog";
} }
} }