Fix #3858: Some warnings are not colored when using --color option

This commit is contained in:
Takeshi KOMIYA
2017-06-10 11:54:15 +09:00
parent db8ff5fb75
commit 6cf78daeaa
2 changed files with 2 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ Bugs fixed
* #3829: sphinx-quickstart template is incomplete regarding use of alabaster
* #3772: 'str object' has no attribute 'filename'
* Emit wrong warnings if citation label includes hyphens (refs: #3565)
* #3858: Some warnings are not colored when using --color option
Testing
--------

View File

@@ -51,6 +51,7 @@ VERBOSITY_MAP.update({
COLOR_MAP = defaultdict(lambda: 'blue') # type: Dict[int, unicode]
COLOR_MAP.update({
logging.ERROR: 'darkred',
logging.WARNING: 'darkred',
logging.DEBUG: 'darkgray',
})