Added skin/section (if available) to logging.

This commit is contained in:
Brian Ferguson
2013-06-29 10:59:18 -06:00
parent 6d87614d4c
commit eeef84dfa0
29 changed files with 344 additions and 136 deletions

View File

@@ -61,7 +61,7 @@ void MeasureCalc::UpdateValue()
{
if (!m_ParseError)
{
LogErrorF(L"Calc: %s in [%s]", errMsg, m_Name.c_str());
LogErrorF(this, L"Calc: %s", errMsg);
m_ParseError = true;
}
}
@@ -105,7 +105,7 @@ void MeasureCalc::ReadOptions(ConfigParser& parser, const WCHAR* section)
const WCHAR* errMsg = MathParser::Check(m_Formula.c_str());
if (errMsg != nullptr)
{
LogErrorF(L"Calc: %s in [%s]", errMsg, m_Name.c_str());
LogErrorF(this, L"Calc: %s", errMsg);
m_Formula.clear();
}
}