diff --git a/src/libtomahawk/database/databasecommand_deletefiles.cpp b/src/libtomahawk/database/databasecommand_deletefiles.cpp index 63fb1ed01..d6ba1c7ad 100644 --- a/src/libtomahawk/database/databasecommand_deletefiles.cpp +++ b/src/libtomahawk/database/databasecommand_deletefiles.cpp @@ -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() ); diff --git a/src/libtomahawk/database/databasecommand_deletefiles.h b/src/libtomahawk/database/databasecommand_deletefiles.h index 2eaa39407..11f6d5fad 100644 --- a/src/libtomahawk/database/databasecommand_deletefiles.h +++ b/src/libtomahawk/database/databasecommand_deletefiles.h @@ -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 ); } diff --git a/src/musicscanner.cpp b/src/musicscanner.cpp index 17b6783f9..6a511f300 100644 --- a/src/musicscanner.cpp +++ b/src/musicscanner.cpp @@ -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++;