Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tsoc
superbenchmark
Commits
34202d41
Unverified
Commit
34202d41
authored
Aug 31, 2022
by
Yifan Xiong
Committed by
GitHub
Aug 31, 2022
Browse files
Upgrade colorlog for NO_COLOR support (#404)
Upgrade colorlog for [`$NO_COLOR`](
https://no-color.org/
) support.
parent
b5e3678e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
setup.py
setup.py
+1
-1
superbench/common/utils/logging.py
superbench/common/utils/logging.py
+7
-0
No files found.
setup.py
View file @
34202d41
...
@@ -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'
,
...
...
superbench/common/utils/logging.py
View file @
34202d41
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment