Merge "Remove method blather in log adapter"

This commit is contained in:
Zuul 2017-10-24 03:17:54 +00:00 committed by Gerrit Code Review
commit 8ca9a30599
1 changed files with 0 additions and 7 deletions

View File

@ -18,8 +18,6 @@ from __future__ import absolute_import
import logging
from debtcollector import moves
_BASE = __name__.split(".", 1)[0]
# Add a BLATHER/TRACE level, this matches the multiprocessing
@ -44,11 +42,6 @@ WARNING = logging.WARNING
class _TraceLoggerAdapter(logging.LoggerAdapter):
@moves.moved_method("trace", version="1.26.0", removal_version="?")
def blather(self, msg, *args, **kwargs):
"""Delegate a blather call to the underlying logger."""
self.log(BLATHER, msg, *args, **kwargs)
def trace(self, msg, *args, **kwargs):
"""Delegate a trace call to the underlying logger."""
self.log(TRACE, msg, *args, **kwargs)