summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeth Foster <fosterbseth@gmail.com>2023-01-05 18:55:20 +0100
committerSeth Foster <fosterbseth@gmail.com>2023-01-05 18:55:20 +0100
commit6492c039658cbba65729a12ac9f44ab66fed38fc (patch)
treed96ad57b1449dfca2bbcd0ab1f622d919b0e18ce
parentMerge pull request #13372 from vidyanambiar/aap-7757 (diff)
downloadawx-6492c039658cbba65729a12ac9f44ab66fed38fc.tar.xz
awx-6492c039658cbba65729a12ac9f44ab66fed38fc.zip
Fix console color logs
-rw-r--r--awx/main/utils/handlers.py4
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):