Merge "Show what the threshold is being increased to"

This commit is contained in:
Jenkins 2014-12-02 07:05:38 +00:00 committed by Gerrit Code Review
commit f2234d291f
1 changed files with 3 additions and 2 deletions

View File

@ -172,8 +172,9 @@ class ReplyWaiters(object):
self._queues[msg_id] = queue
if len(self._queues) > self._wrn_threshold:
LOG.warn('Number of call queues is greater than warning '
'threshold: %d. There could be a leak.',
self._wrn_threshold)
'threshold: %d. There could be a leak. Increasing'
' threshold to: %d', self._wrn_threshold,
self._wrn_threshold * 2)
self._wrn_threshold *= 2
def remove(self, msg_id):