diff options
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/msg.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py index 13ee569e9a..00dc139c88 100644 --- a/bitbake/lib/bb/msg.py +++ b/bitbake/lib/bb/msg.py | |||
@@ -33,17 +33,22 @@ import bb.event | |||
33 | class BBLogFormatter(logging.Formatter): | 33 | class BBLogFormatter(logging.Formatter): |
34 | """Formatter which ensures that our 'plain' messages (logging.INFO + 1) are used as is""" | 34 | """Formatter which ensures that our 'plain' messages (logging.INFO + 1) are used as is""" |
35 | 35 | ||
36 | DEBUG = logging.DEBUG | ||
36 | VERBOSE = 19 | 37 | VERBOSE = 19 |
38 | NOTE = logging.INFO | ||
37 | PLAIN = 21 | 39 | PLAIN = 21 |
40 | ERROR = logging.ERROR | ||
41 | WARNING = logging.WARNING | ||
42 | CRITICAL = logging.CRITICAL | ||
43 | |||
38 | levelnames = { | 44 | levelnames = { |
45 | DEBUG : 'DEBUG', | ||
39 | PLAIN : '', | 46 | PLAIN : '', |
47 | NOTE : 'NOTE', | ||
40 | VERBOSE: 'NOTE', | 48 | VERBOSE: 'NOTE', |
41 | 49 | WARNING : 'WARNING', | |
42 | logging.DEBUG : 'DEBUG', | 50 | ERROR : 'ERROR', |
43 | logging.INFO : 'NOTE', | 51 | CRITICAL: 'ERROR', |
44 | logging.WARNING : 'WARNING', | ||
45 | logging.ERROR : 'ERROR', | ||
46 | logging.CRITICAL: 'ERROR', | ||
47 | } | 52 | } |
48 | 53 | ||
49 | def getLevelName(self, levelno): | 54 | def getLevelName(self, levelno): |