diff --git a/beast/insight/impl/StatsDCollector.cpp b/beast/insight/impl/StatsDCollector.cpp index 86d540d3c..6e958ae60 100644 --- a/beast/insight/impl/StatsDCollector.cpp +++ b/beast/insight/impl/StatsDCollector.cpp @@ -29,6 +29,10 @@ #include #include +#ifndef BEAST_STATSDCOLLECTOR_TRACING_ENABLED +#define BEAST_STATSDCOLLECTOR_TRACING_ENABLED 0 +#endif + namespace beast { namespace insight { @@ -315,8 +319,9 @@ public: void do_post_buffer (std::string const& buffer) { - m_journal.info << - buffer; +#if BEAST_STATSDCOLLECTOR_TRACING_ENABLED + m_journal.trace << std::endl << buffer; +#endif m_data.emplace_back (buffer); } @@ -406,9 +411,6 @@ public: send_buffers (); - m_journal.info << - "on_timer"; - set_timer (); }