Log if VATSIM data file contains malformed lines

This commit is contained in:
Klaus Basan
2017-06-26 01:40:04 +02:00
committed by Mathew Sutcliffe
parent e10ab7b9de
commit 0b85a7c02a

View File

@@ -455,7 +455,7 @@ namespace BlackCore
if (currentLine.endsWith(':')) { clientParts.removeLast(); } if (currentLine.endsWith(':')) { clientParts.removeLast(); }
if (clientParts.size() != clientSectionAttributes.size()) if (clientParts.size() != clientSectionAttributes.size())
{ {
BLACK_VERIFY_X(false, Q_FUNC_INFO, "Wrong parts size"); CLogMessage(getLogCategories()).warning("Client parts: %1 attributes: %2 line: '%3'") << clientParts.size() << clientSectionAttributes.size() << currentLine;
return parts; return parts;
} }