]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Added color for logging.CRITICAL = 5 (Magenta). 2649/head
authorBrett Randall <javabrett@gmail.com>
Wed, 24 Apr 2019 03:36:37 +0000 (13:36 +1000)
committerBrett Randall <javabrett@gmail.com>
Wed, 24 Apr 2019 03:36:37 +0000 (13:36 +1000)
Fixed #2648.

tornado/log.py

index 435cd718580b54528da8122043fed3a055694901..e1f7c6a677d1fc2807e586ed4ef042973293fb52 100644 (file)
@@ -110,6 +110,7 @@ class LogFormatter(logging.Formatter):
         logging.INFO: 2,  # Green
         logging.WARNING: 3,  # Yellow
         logging.ERROR: 1,  # Red
+        logging.CRITICAL: 5,  # Magenta
     }
 
     def __init__(