mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
Remove extra debug
This commit is contained in:
parent
af7b20ee55
commit
fde7ef75af
@ -105,15 +105,14 @@ DatabaseCommand_DeleteFiles::exec( DatabaseImpl* dbi )
|
||||
dirquery.prepare( QString( "SELECT id, url FROM file WHERE source IS NULL AND id IN ( %1 )" ).arg( idstring ) );
|
||||
|
||||
dirquery.exec();
|
||||
tDebug() << Q_FUNC_INFO << " result size: " << dirquery.size();
|
||||
while ( dirquery.next() )
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO << " found dirquery value 0: " << dirquery.value( 0 ).toString() << " and value 1: " << dirquery.value( 1 ).toString();
|
||||
//tDebug() << Q_FUNC_INFO << " found dirquery value 0: " << dirquery.value( 0 ).toString() << " and value 1: " << dirquery.value( 1 ).toString();
|
||||
m_files << dirquery.value( 1 ).toString();
|
||||
}
|
||||
|
||||
tDebug() << Q_FUNC_INFO << " executed query was: " << dirquery.executedQuery();
|
||||
tDebug() << Q_FUNC_INFO << " files selected for delete: " << m_files;
|
||||
//tDebug() << Q_FUNC_INFO << " executed query was: " << dirquery.executedQuery();
|
||||
//tDebug() << Q_FUNC_INFO << " files selected for delete: " << m_files;
|
||||
}
|
||||
else if ( m_deleteAll )
|
||||
{
|
||||
@ -161,7 +160,7 @@ DatabaseCommand_DeleteFiles::exec( DatabaseImpl* dbi )
|
||||
}
|
||||
else if ( !m_ids.isEmpty() )
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO << " executing delete of ids " << m_ids;
|
||||
tDebug() << Q_FUNC_INFO << " executing delete";
|
||||
delquery.prepare( QString( "DELETE FROM file WHERE source %1 AND %2 IN ( ? )" )
|
||||
.arg( source()->isLocal() ? "IS NULL" : QString( "= %1" ).arg( source()->id() ) )
|
||||
.arg( source()->isLocal() ? "id" : "url" ) );
|
||||
@ -184,7 +183,7 @@ DatabaseCommand_DeleteFiles::exec( DatabaseImpl* dbi )
|
||||
<< delquery.boundValues();
|
||||
}
|
||||
|
||||
tDebug() << Q_FUNC_INFO << " executed query was: " << delquery.executedQuery();
|
||||
//tDebug() << Q_FUNC_INFO << " executed query was: " << delquery.executedQuery();
|
||||
}
|
||||
|
||||
emit done( m_files, source()->collection() );
|
||||
|
@ -44,21 +44,18 @@ public:
|
||||
explicit DatabaseCommand_DeleteFiles( const Tomahawk::source_ptr& source, QObject* parent = 0 )
|
||||
: DatabaseCommandLoggable( parent ), m_deleteAll( true )
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO << " deleting single source";
|
||||
setSource( source );
|
||||
}
|
||||
|
||||
explicit DatabaseCommand_DeleteFiles( const QDir& dir, const Tomahawk::source_ptr& source, QObject* parent = 0 )
|
||||
: DatabaseCommandLoggable( parent ), m_dir( dir ), m_deleteAll( false )
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO << " deleting dir " << dir;
|
||||
setSource( source );
|
||||
}
|
||||
|
||||
explicit DatabaseCommand_DeleteFiles( const QVariantList& ids, const Tomahawk::source_ptr& source, QObject* parent = 0 )
|
||||
: DatabaseCommandLoggable( parent ), m_ids( ids ), m_deleteAll( false )
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO << " deleting ids " << ids << " with size " << ids.count();
|
||||
setSource( source );
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ DirLister::go()
|
||||
m_newdirmtimes = m_dirmtimes;
|
||||
}
|
||||
|
||||
tDebug( LOGEXTRA ) << "m_dirmtimes = " << m_dirmtimes;
|
||||
tDebug( LOGVERBOSE ) << "m_dirmtimes = " << m_dirmtimes;
|
||||
foreach ( const QString& dir, m_dirs )
|
||||
{
|
||||
m_opcount++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user