msg/async: avoid log spam on throttle

increase the log level from 1 to 10, the log is printed when message
throttler kicks in.

Fixes: #15031
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2016-03-22 23:30:14 +08:00
parent 6e74170189
commit d296609c76

View File

@ -669,9 +669,9 @@ void AsyncConnection::process()
<< policy.throttler_messages->get_current() << "/"
<< policy.throttler_messages->get_max() << dendl;
if (!policy.throttler_messages->get_or_fail()) {
ldout(async_msgr->cct, 1) << __func__ << " wants 1 message from policy throttle "
<< policy.throttler_messages->get_current() << "/"
<< policy.throttler_messages->get_max() << " failed, just wait." << dendl;
ldout(async_msgr->cct, 10) << __func__ << " wants 1 message from policy throttle "
<< policy.throttler_messages->get_current() << "/"
<< policy.throttler_messages->get_max() << " failed, just wait." << dendl;
// following thread pool deal with th full message queue isn't a
// short time, so we can wait a ms.
if (register_time_events.empty())