diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-01-07 15:03:06 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-01-07 15:03:16 +0900 |
commit | ae24524d5f95cb7c94ffb2404322f1d0c0e4a6e1 (patch) | |
tree | 99e2181447ec20d3c52de8d966a2f8fecb3dc962 /sphinx/util/logging.py | |
parent | 13df6f20ea9ff0a61b990ebb5ffad1ba2e251fa1 (diff) | |
download | sphinx-git-ae24524d5f95cb7c94ffb2404322f1d0c0e4a6e1.tar.gz |
Drop debug2() (refs: #3304)
Diffstat (limited to 'sphinx/util/logging.py')
-rw-r--r-- | sphinx/util/logging.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sphinx/util/logging.py b/sphinx/util/logging.py index eb9c03ff3..b4f8f5796 100644 --- a/sphinx/util/logging.py +++ b/sphinx/util/logging.py @@ -30,7 +30,6 @@ if False: VERBOSE = 15 -DEBUG2 = 5 LEVEL_NAMES = defaultdict(lambda: logging.WARNING) # type: Dict[str, int] LEVEL_NAMES.update({ @@ -41,7 +40,6 @@ LEVEL_NAMES.update({ 'INFO': logging.INFO, 'VERBOSE': VERBOSE, 'DEBUG': logging.DEBUG, - 'DEBUG2': DEBUG2, }) VERBOSITY_MAP = defaultdict(lambda: 0) # type: Dict[int, int] @@ -49,14 +47,12 @@ VERBOSITY_MAP.update({ 0: logging.INFO, 1: VERBOSE, 2: logging.DEBUG, - 3: DEBUG2, }) COLOR_MAP = defaultdict(lambda text: text) # type: Dict[int, unicode] COLOR_MAP.update({ logging.WARNING: 'darkred', logging.DEBUG: 'darkgray', - DEBUG2: 'lightgray', }) @@ -105,10 +101,6 @@ class SphinxLoggerAdapter(logging.LoggerAdapter): # type: (unicode, Any, Any) -> None self.log(VERBOSE, msg, *args, **kwargs) - def debug2(self, msg, *args, **kwargs): - # type: (unicode, Any, Any) -> None - self.log(DEBUG2, msg, *args, **kwargs) - def process(self, msg, kwargs): # type: ignore # type: (unicode, Dict) -> Tuple[unicode, Dict] extra = kwargs.setdefault('extra', {}) |