From 83c449e1786e49464208a7c469208ed9d106b374 Mon Sep 17 00:00:00 2001 From: rjawor Date: Tue, 21 May 2019 12:43:04 +0200 Subject: [PATCH] debug --- concordia-server/unit_dao.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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");