Change DEBUG log in loopingcall to TRACE level log
The DEBUG log message in _run_loop() method will record every loopingcall info every interval, that may cause log noise. e.g. In ceilometer, the partition coordinator will have a fixed interval looping call every two seconds as default. Change-Id: I32aa474ece2458aa7cc1a5c271a40f664bf07af2
This commit is contained in:
parent
6dd3ad50b6
commit
bbfcde1737
|
@ -15,11 +15,11 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import logging
|
||||
import sys
|
||||
|
||||
from eventlet import event
|
||||
from eventlet import greenthread
|
||||
from oslo_log import log as logging
|
||||
from oslo_utils import excutils
|
||||
from oslo_utils import reflection
|
||||
from oslo_utils import timeutils
|
||||
|
@ -115,7 +115,7 @@ class LoopingCallBase(object):
|
|||
if not self._running:
|
||||
break
|
||||
idle = idle_for_func(result, watch.elapsed())
|
||||
LOG.debug('%(kind)s %(func_name)r sleeping '
|
||||
LOG.trace('%(kind)s %(func_name)r sleeping '
|
||||
'for %(idle).02f seconds',
|
||||
{'func_name': func_name, 'idle': idle,
|
||||
'kind': kind})
|
||||
|
|
Loading…
Reference in New Issue