Remove noisy log write from Stoppable.cpp

This commit is contained in:
Scott Schurr
2018-09-20 18:04:46 -07:00
committed by Nik Bougalis
parent 582d1691a9
commit b36e9dd1b4

View File

@@ -103,20 +103,7 @@ void Stoppable::startRecursive ()
void Stoppable::stopAsyncRecursive (beast::Journal j)
{
using namespace std::chrono;
auto const start = high_resolution_clock::now();
onStop ();
auto const ms = duration_cast<milliseconds>(
high_resolution_clock::now() - start);
#ifdef NDEBUG
using namespace std::chrono_literals;
if (ms >= 10ms)
if (auto stream = j.fatal())
stream << m_name << "::onStop took " << ms.count() << "ms";
#else
(void)ms;
#endif
for (Children::const_iterator iter (m_children.cbegin ());
iter != m_children.cend(); ++iter)