diff options
Diffstat (limited to 'bitbake/lib/bb/__init__.py')
-rw-r--r-- | bitbake/lib/bb/__init__.py | 16 |
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 | |||
66 | logging.raiseExceptions = False | 70 | logging.raiseExceptions = False |
67 | logging.setLoggerClass(BBLogger) | 71 | logging.setLoggerClass(BBLogger) |
68 | 72 | ||
@@ -93,6 +97,18 @@ def debug(lvl, *args): | |||
93 | def note(*args): | 97 | def 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 | # | ||
106 | def verbnote(*args): | ||
107 | mainlogger.verbnote(''.join(args)) | ||
108 | |||
109 | # | ||
110 | # Warnings - things the user likely needs to pay attention to and fix | ||
111 | # | ||
96 | def warn(*args): | 112 | def warn(*args): |
97 | mainlogger.warning(''.join(args)) | 113 | mainlogger.warning(''.join(args)) |
98 | 114 | ||