diff options
author | Seth Foster <fosterbseth@gmail.com> | 2023-01-05 18:55:20 +0100 |
---|---|---|
committer | Seth Foster <fosterbseth@gmail.com> | 2023-01-05 18:55:20 +0100 |
commit | 6492c039658cbba65729a12ac9f44ab66fed38fc (patch) | |
tree | d96ad57b1449dfca2bbcd0ab1f622d919b0e18ce | |
parent | Merge pull request #13372 from vidyanambiar/aap-7757 (diff) | |
download | awx-6492c039658cbba65729a12ac9f44ab66fed38fc.tar.xz awx-6492c039658cbba65729a12ac9f44ab66fed38fc.zip |
Fix console color logs
-rw-r--r-- | awx/main/utils/handlers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/awx/main/utils/handlers.py b/awx/main/utils/handlers.py index 1740a4c8f6..7f7116d78b 100644 --- a/awx/main/utils/handlers.py +++ b/awx/main/utils/handlers.py @@ -103,6 +103,10 @@ ColorHandler = logging.StreamHandler if settings.COLOR_LOGS is True: try: from logutils.colorize import ColorizingStreamHandler + import colorama + + colorama.deinit() + colorama.init(wrap=False, convert=False, strip=False) class ColorHandler(ColorizingStreamHandler): def colorize(self, line, record): |