Unverified Commit 34202d41 authored by Yifan Xiong's avatar Yifan Xiong Committed by GitHub
Browse files

Upgrade colorlog for NO_COLOR support (#404)

Upgrade colorlog for [`$NO_COLOR`](https://no-color.org/) support.
parent b5e3678e
...@@ -142,7 +142,7 @@ def run(self): ...@@ -142,7 +142,7 @@ def run(self):
install_requires=[ install_requires=[
'ansible_base>=2.10.9;os_name=="posix"', 'ansible_base>=2.10.9;os_name=="posix"',
'ansible_runner>=2.0.0rc1', 'ansible_runner>=2.0.0rc1',
'colorlog>=4.7.2', 'colorlog>=6.7.0',
'jinja2>=2.10.1', 'jinja2>=2.10.1',
'joblib>=1.0.1', 'joblib>=1.0.1',
'jsonlines>=2.0.0', 'jsonlines>=2.0.0',
......
...@@ -8,6 +8,13 @@ ...@@ -8,6 +8,13 @@
import sys import sys
import colorlog import colorlog
# workaround to get rid of isatty from
# colorama StreamWrapper in WSL2
try:
from colorama import deinit
deinit()
except Exception:
pass
class LoggerAdapter(logging.LoggerAdapter): class LoggerAdapter(logging.LoggerAdapter):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment