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