]> code.ossystems Code Review - openembedded-core.git/commitdiff
msg: no need to hardcode the logging levels
authorChris Larson <chris_larson@mentor.com>
Mon, 10 Jan 2011 19:30:05 +0000 (12:30 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Jan 2011 22:10:53 +0000 (22:10 +0000)
(Bitbake rev: 8385bfb7da3a3b71f340a787d7f1502ba61c5b81)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/msg.py

index 00dc139c88d8f9f46929837e7f45ef1a32204d98..9d26fa06bd97aafe2efb272ce8e0846e60b99547 100644 (file)
@@ -34,9 +34,9 @@ class BBLogFormatter(logging.Formatter):
     """Formatter which ensures that our 'plain' messages (logging.INFO + 1) are used as is"""
 
     DEBUG = logging.DEBUG
-    VERBOSE = 19
+    VERBOSE = logging.INFO - 1
     NOTE = logging.INFO
-    PLAIN = 21
+    PLAIN = logging.INFO + 1
     ERROR = logging.ERROR
     WARNING = logging.WARNING
     CRITICAL = logging.CRITICAL