From 63884bf74be58e3ac0805e1622b53346cab3d77f Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Fri, 17 Oct 2014 19:12:57 +0200 Subject: [PATCH] Make Lucene++ logging more meaningful --- src/libtomahawk/database/fuzzyindex/FuzzyIndex.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libtomahawk/database/fuzzyindex/FuzzyIndex.cpp b/src/libtomahawk/database/fuzzyindex/FuzzyIndex.cpp index ecc36c40d..d40a7f99d 100644 --- a/src/libtomahawk/database/fuzzyindex/FuzzyIndex.cpp +++ b/src/libtomahawk/database/fuzzyindex/FuzzyIndex.cpp @@ -103,7 +103,7 @@ FuzzyIndex::beginIndexing() } catch( LuceneException& error ) { - tDebug() << "Caught Lucene error:" << error.what(); + tDebug() << "Caught Lucene error:" << QString::fromWCharArray( error.getError().c_str() ); Q_ASSERT( false ); } } @@ -164,7 +164,7 @@ FuzzyIndex::appendFields( const Tomahawk::IndexData& data ) } 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() ) ); } @@ -262,7 +262,7 @@ FuzzyIndex::search( const Tomahawk::query_ptr& query ) } 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; @@ -304,7 +304,7 @@ FuzzyIndex::searchAlbum( const Tomahawk::query_ptr& query ) } catch( LuceneException& error ) { - tDebug() << "Caught Lucene error:" << error.what(); + tDebug() << "Caught Lucene error:" << QString::fromWCharArray( error.getError().c_str() ); } return resultsmap;