]> git.ipfire.org Git - thirdparty/tornado.git/commit
Only use colorama when curses unavailable
authorMichael V. DePalatis <mike@depalatis.net>
Wed, 31 Aug 2016 11:59:18 +0000 (13:59 +0200)
committerMichael V. DePalatis <mike@depalatis.net>
Wed, 31 Aug 2016 11:59:18 +0000 (13:59 +0200)
commit43413a2cb962e59d8f528aa568edcd5ea59f71d4
tree53f9529482bb07a34356bb28ea8e04e347112290
parent4f894630d0889973c88a087b4e0de8441afdaa33
Only use colorama when curses unavailable

This also uses dimmer colors for Windows. This can be tested with
the following script:

```python
import logging
from tornado.log import enable_pretty_logging

logger = logging.getLogger()
enable_pretty_logging()
logger.setLevel(logging.DEBUG)

logger.info("INFO")
logger.warning("WARNING")
logger.debug("DEBUG")
logger.error("ERROR")
print("normal")
```
tornado/log.py