Skip to content

Commit

Permalink
Fix the error logging in the VariableRegularizationTask.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRomualdi committed Oct 26, 2021
1 parent 14d7259 commit 61a5620
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/TSID/src/VariableRegularizationTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,18 @@ bool VariableRegularizationTask::initialize(std::weak_ptr<const IParametersHandl
if (!ptr->getParameter("elements_name", m_controlledElements))
{
m_description += "All";
log()->info("{} The elements_name is not set. All the {} elements will be regularized.",
errorPrefix,
m_variableSize);
log()->debug("{} The elements_name is not set. All the {} elements will be regularized.",
errorPrefix,
m_variableSize);
} else
{
if (m_variableSize != m_controlledElements.size())
{
log()->info("{} The size of the elements_name vector is different from the one "
"expected. Expected: {}, Retrieved: {}",
errorPrefix,
m_variableSize,
m_controlledElements.size());
log()->error("{} The size of the elements_name vector is different from the one "
"expected. Expected: {}, Retrieved: {}",
errorPrefix,
m_variableSize,
m_controlledElements.size());
return false;
}
for (const auto& element : m_controlledElements)
Expand Down

0 comments on commit 61a5620

Please sign in to comment.