From 3a895ccfaa6cf7ee5df07d3a3d3ad881f778abdd Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 2 Jan 2014 19:32:27 -0800 Subject: [PATCH] Reduce StatsDCollector log verbosity --- beast/insight/impl/StatsDCollector.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 (); }