Skip to content

Commit

Permalink
opt:simpify the log output (#2148)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang authored Feb 12, 2025
1 parent e083c28 commit 7bff0e1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/article_netmgr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ string ArticleNetworkAccessManager::getHtml( ResourceType resourceType )
sptr< Dictionary::DataRequest > ArticleNetworkAccessManager::getResource( QUrl const & url, QString & contentType )
{
qDebug() << "getResource:" << url.toString();
qDebug() << "scheme:" << url.scheme();
qDebug() << "host:" << url.host();

if ( url.scheme() == "gdlookup" ) {
if ( !url.host().isEmpty() && url.host() != "localhost" ) {
Expand Down
2 changes: 1 addition & 1 deletion src/dict/dsl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ void DslDictionary::doDeferredInit()
memcpy( &total, abrvBlock, sizeof( uint32_t ) );
abrvBlock += sizeof( uint32_t );

qDebug( "Loading %u abbrv", total );
qDebug( "DSL: %s loading %u abbrv", getName().c_str(), total );

while ( total-- ) {
uint32_t keySz;
Expand Down
4 changes: 1 addition & 3 deletions src/dict/epwing_book.cc
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ EpwingBook::~EpwingBook()

void EpwingBook::setErrorString( QString const & func, EB_Error_Code code )
{
error_string = QString( "EB \"%1\" function error: %2 (%3)" )
error_string = QString( "Epwing: (%1) function error. %2 (%3)" )
.arg( func )
.arg( QString::fromLocal8Bit( eb_error_string( code ) ) )
.arg( QString::fromLocal8Bit( eb_error_message( code ) ) );
Expand Down Expand Up @@ -612,8 +612,6 @@ QString EpwingBook::repairSubBookDirectory( QString subBookDir )
return subBookDir;
}

qDebug() << "Epwing: can not found subbook directory,try to fix automatically, dir=>" << subBookDir;

for ( const auto & file : allIdxFiles ) {
if ( file.compare( subBookDir, Qt::CaseInsensitive ) == 0 ) {
qDebug() << "Epwing: found " << file;
Expand Down
2 changes: 0 additions & 2 deletions src/dict/transliteration/transliteration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ BaseTransliterationDictionary::findHeadwordsForSynonym( std::u32string const & s

vector< std::u32string > alts = getAlternateWritings( str );

qDebug( "alts = %u", (unsigned)alts.size() );

for ( const auto & alt : alts ) {
result->getMatches().push_back( alt );
}
Expand Down

0 comments on commit 7bff0e1

Please sign in to comment.