Skip to content

Commit

Permalink
opt:rewrite the log (#2147)
Browse files Browse the repository at this point in the history
* opt:rewrite the log

* [autofix.ci] apply automated fixes

* opt:rewrite the log

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
xiaoyifang and autofix-ci[bot] authored Feb 12, 2025
1 parent acf58d7 commit e083c28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 3 additions & 6 deletions src/article_maker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ void ArticleRequest::bodyFinished()
return;
}

qDebug( "some body finished" );
qDebug( "body finshed signal received" );

bool wasUpdated = false;

Expand All @@ -612,8 +612,6 @@ void ArticleRequest::bodyFinished()
if ( bodyRequests.front()->isFinished() ) {
// Good

qDebug( "one finished." );

Dictionary::DataRequest & req = *bodyRequests.front();

QString errorString = req.getErrorString();
Expand All @@ -623,6 +621,7 @@ void ArticleRequest::bodyFinished()

string dictId = activeDict->getId();

qDebug() << "dict:" << activeDict->getName().c_str() << " finished.";

dictIds << QString::fromStdString( dictId );
string head;
Expand Down Expand Up @@ -712,12 +711,10 @@ void ArticleRequest::bodyFinished()
//signal finished dictionary for pronounciation
GlobalBroadcaster::instance()->pronounce_engine.finishDictionary( dictId );
}
qDebug( "erasing.." );
bodyRequests.pop_front();
qDebug( "erase done.." );
}
else {
qDebug( "one not finished." );
qDebug( "the top one has not finished yet." );
break;
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/fulltextsearch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,7 @@ void FullTextSearchDialog::searchReqFinished()
}
}
if ( it != searchReqs.end() ) {
qDebug( "erasing.." );
searchReqs.erase( it );
qDebug( "erase done.." );
continue;
}
else {
Expand Down

0 comments on commit e083c28

Please sign in to comment.