summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/__init__.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-07 14:06:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-10 12:13:38 +0100
commit78d517e4106949c534f62b7e781f68c8b28efa2f (patch)
tree838f5791ea88fcbe689c5e34009b75d6b7d8ef30 /bitbake/lib/bb/__init__.py
parent7c037b0d3e28710d868001522ad3e543c45b1802 (diff)
downloadpoky-78d517e4106949c534f62b7e781f68c8b28efa2f.tar.gz
bitbake: msg: Add explicit verbnote log level
It has become apparant we need a log level which reaches the console but isn't a warning/error. Add "verbnote" as a way of doing this, behaves as a note but with a higher priority. (Bitbake rev: 2076f12cc2f809345108b1606bd6201f41287505) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/__init__.py')
-rw-r--r--bitbake/lib/bb/__init__.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py
index 4e9f6e3535..170c592acf 100644
--- a/bitbake/lib/bb/__init__.py
+++ b/bitbake/lib/bb/__init__.py
@@ -63,6 +63,10 @@ class BBLogger(Logger):
63 def verbose(self, msg, *args, **kwargs): 63 def verbose(self, msg, *args, **kwargs):
64 return self.log(logging.INFO - 1, msg, *args, **kwargs) 64 return self.log(logging.INFO - 1, msg, *args, **kwargs)
65 65
66 def verbnote(self, msg, *args, **kwargs):
67 return self.log(logging.INFO + 2, msg, *args, **kwargs)
68
69
66logging.raiseExceptions = False 70logging.raiseExceptions = False
67logging.setLoggerClass(BBLogger) 71logging.setLoggerClass(BBLogger)
68 72
@@ -93,6 +97,18 @@ def debug(lvl, *args):
93def note(*args): 97def note(*args):
94 mainlogger.info(''.join(args)) 98 mainlogger.info(''.join(args))
95 99
100#
101# A higher prioity note which will show on the console but isn't a warning
102#
103# Something is happening the user should be aware of but they probably did
104# something to make it happen
105#
106def verbnote(*args):
107 mainlogger.verbnote(''.join(args))
108
109#
110# Warnings - things the user likely needs to pay attention to and fix
111#
96def warn(*args): 112def warn(*args):
97 mainlogger.warning(''.join(args)) 113 mainlogger.warning(''.join(args))
98 114