From fb769d3dc0914521a24f9a2b7baad1d4c6fd9d89 Mon Sep 17 00:00:00 2001 From: "Charles E. Rolke" Date: Sat, 3 Nov 2012 10:21:59 +0000 Subject: QPID-4403 review 7810 Too many 'task late and overran' messages Demote TimerWarning messages to debug level. Print them only once per minute. To enable only these messages when broker is otherwise at INFO log level: --log-enable debug+:Timer git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1405316 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/Timer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/src/qpid/sys/Timer.cpp') diff --git a/cpp/src/qpid/sys/Timer.cpp b/cpp/src/qpid/sys/Timer.cpp index 973c6bd8b7..83d1a5260b 100644 --- a/cpp/src/qpid/sys/Timer.cpp +++ b/cpp/src/qpid/sys/Timer.cpp @@ -107,7 +107,7 @@ Timer::Timer() : late(50 * TIME_MSEC), overran(2 * TIME_MSEC), lateCancel(500 * TIME_MSEC), - warn(5 * TIME_SEC) + warn(60 * TIME_SEC) { start(); } @@ -171,8 +171,8 @@ void Timer::run() if (!tasks.empty()) { overrun = Duration(tasks.top()->nextFireTime, end); } - bool warningsEnabled; - QPID_LOG_TEST(warning, warningsEnabled); + bool warningsEnabled; // TimerWarning enabled + QPID_LOG_TEST(debug, warningsEnabled); // TimerWarning emitted at debug level if (warningsEnabled) { if (overrun > overran) { if (delay > overran) // if delay is significant to an overrun. -- cgit v1.2.1