1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-14 01:54:07 +02:00

Make Lucene++ logging more meaningful

This commit is contained in:
Dominik Schmidt
2014-10-17 19:12:57 +02:00
parent e614bea370
commit 63884bf74b

View File

@@ -103,7 +103,7 @@ FuzzyIndex::beginIndexing()
} }
catch( LuceneException& error ) catch( LuceneException& error )
{ {
tDebug() << "Caught Lucene error:" << error.what(); tDebug() << "Caught Lucene error:" << QString::fromWCharArray( error.getError().c_str() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@@ -164,7 +164,7 @@ FuzzyIndex::appendFields( const Tomahawk::IndexData& data )
} }
catch( LuceneException& error ) catch( LuceneException& error )
{ {
tDebug() << "Caught Lucene error:" << error.what(); tDebug() << "Caught Lucene error:" << QString::fromWCharArray( error.getError().c_str() );
QTimer::singleShot( 0, this, SLOT( wipeIndex() ) ); QTimer::singleShot( 0, this, SLOT( wipeIndex() ) );
} }
@@ -262,7 +262,7 @@ FuzzyIndex::search( const Tomahawk::query_ptr& query )
} }
catch( LuceneException& error ) catch( LuceneException& error )
{ {
tDebug() << "Caught Lucene error:" << error.what() << query->toString(); tDebug() << "Caught Lucene error:" << QString::fromWCharArray( error.getError().c_str() ) << query->toString();
} }
return resultsmap; return resultsmap;
@@ -304,7 +304,7 @@ FuzzyIndex::searchAlbum( const Tomahawk::query_ptr& query )
} }
catch( LuceneException& error ) catch( LuceneException& error )
{ {
tDebug() << "Caught Lucene error:" << error.what(); tDebug() << "Caught Lucene error:" << QString::fromWCharArray( error.getError().c_str() );
} }
return resultsmap; return resultsmap;