diff --git a/concordia-server/unit_dao.cpp b/concordia-server/unit_dao.cpp index ab98a97..cb7f2ad 100644 --- a/concordia-server/unit_dao.cpp +++ b/concordia-server/unit_dao.cpp @@ -188,7 +188,7 @@ ExampleOccurrence UnitDAO::_getExampleOccurrence(DBconnection & connection, cons connection.getStringValue(result,0,2), // target segment connection.getStringValue(result,0,7), // source name connection.getStringValue(result,0,8)); // source link - Logger::log("occurence got"); + Logger::log("occurence got. Example id", occurence.getExampleId()); std::string targetTokensRaw = connection.getStringValue(result,0,5); Logger::log("target tokens got"); @@ -210,6 +210,7 @@ ExampleOccurrence UnitDAO::_getExampleOccurrence(DBconnection & connection, cons for(int sourceTokenIndex = sOccurrence.getOffset(); sourceTokenIndex < sOccurrence.getOffset()+matchedLength; sourceTokenIndex++) { BOOST_FOREACH(int & targetTokenIndex, alignments.at(sourceTokenIndex)) { matchedTargetTokens.insert(targetTokenIndex); + Logger::logInt("targetTokenIndex", targetTokenIndex); } } Logger::log("matched target tokens computed");