diff options
-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 13ee569e9..00dc139c8 100644 --- a/bitbake/lib/bb/msg.py +++ b/bitbake/lib/bb/msg.py @@ -33,17 +33,22 @@ import bb.event class BBLogFormatter(logging.Formatter): """Formatter which ensures that our 'plain' messages (logging.INFO + 1) are used as is""" + DEBUG = logging.DEBUG VERBOSE = 19 + NOTE = logging.INFO PLAIN = 21 + ERROR = logging.ERROR + WARNING = logging.WARNING + CRITICAL = logging.CRITICAL + levelnames = { + DEBUG : 'DEBUG', PLAIN : '', + NOTE : 'NOTE', VERBOSE: 'NOTE', - - logging.DEBUG : 'DEBUG', - logging.INFO : 'NOTE', - logging.WARNING : 'WARNING', - logging.ERROR : 'ERROR', - logging.CRITICAL: 'ERROR', + WARNING : 'WARNING', + ERROR : 'ERROR', + CRITICAL: 'ERROR', } def getLevelName(self, levelno): |