diff --git a/src/cpp/ripple/ParseSection.cpp b/src/cpp/ripple/ParseSection.cpp index 839d3c85e..12bdded4b 100644 --- a/src/cpp/ripple/ParseSection.cpp +++ b/src/cpp/ripple/ParseSection.cpp @@ -1,4 +1,5 @@ #include "ParseSection.h" +#include "Log.h" #include "utils.h" #include @@ -7,6 +8,8 @@ #define SECTION_DEFAULT_NAME "" +SETUP_LOG(); + section ParseSection(const std::string& strInput, const bool bTrim) { std::string strData(strInput); @@ -113,6 +116,12 @@ bool sectionSingleB(section& secSource, const std::string& strSection, std::stri { strValue = (*pmtEntries)[0]; } + else if (pmtEntries) + { + cLog(lsWARNING) << boost::str(boost::format("Section [%s]: requires 1 line not %d lines.") + % strSection + % pmtEntries->size()); + } return bSingle; }