pgtoolkit/coloredformatter.py
changeset 78 64c62ac8f65d
parent 13 16dc5dec9c36
--- a/pgtoolkit/coloredformatter.py	Fri Mar 15 15:13:42 2013 +0100
+++ b/pgtoolkit/coloredformatter.py	Tue Mar 19 16:45:37 2013 +0100
@@ -9,9 +9,7 @@
 
     def format(self, record):
         color = ()
-        if record.levelno == 21:
-            color = (2, None)
-        if record.levelno == logging.ERROR and not record.exc_info is None:
+        if record.levelno == logging.ERROR and record.exc_info is not None:
             color = (11, 1)
         if color:
             origmsg = record.msg