[tips] error log is removed from tips api

This commit is contained in:
Arsentiy Milchakov 2019-07-12 14:13:04 +03:00 committed by mpimenov
parent 81ceea3847
commit c9d128b640

View file

@ -51,10 +51,6 @@ boost::optional<eye::Tip::Type> GetTipImpl(TipsApi::Duration showAnyTipPeriod,
auto const info = Eye::Instance().GetInfo();
CHECK(info, ("Eye info must be initialized"));
LOG(LINFO, ("Eye info ptr use count:", info.use_count(), "Info", *info, "Info::m_booking ref:",
&(info->m_booking), "Info::m_bookmarks ref:", &(info->m_bookmarks), "Info::m_discovery ref:",
&(info->m_discovery), "Info::m_layers ref:", &(info->m_layers), "Info::m_tips ref:",
&(info->m_tips)));
auto const & tips = info->m_tips;
auto constexpr totalTipsCount = static_cast<size_t>(Tip::Type::Count);
@ -87,22 +83,7 @@ boost::optional<eye::Tip::Type> GetTipImpl(TipsApi::Duration showAnyTipPeriod,
for (auto const & c : candidates)
{
if (c.second && conditions[ToIndex(c.first)](*info))
{
{
std::ostringstream os;
os << "Condition for tip " << DebugPrint(c.first)
<< " returns true. Previously shown tips: [ ";
for (auto const & candidate : candidates)
{
if (!candidate.second)
os << DebugPrint(candidate.first) << " ";
}
os << "]";
LOG(LINFO, (os.str()));
}
return c.first;
}
}
}