summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/ui/buildinfohelper.py5
-rw-r--r--bitbake/lib/bb/ui/toasterui.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index a8c884de37..286fb6a74b 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -1394,7 +1394,9 @@ class BuildInfoHelper(object):
1394 1394
1395 log_information = {} 1395 log_information = {}
1396 log_information['build'] = self.internal_state['build'] 1396 log_information['build'] = self.internal_state['build']
1397 if event.levelno == formatter.ERROR: 1397 if event.levelno == formatter.CRITICAL:
1398 log_information['level'] = LogMessage.CRITICAL
1399 elif event.levelno == formatter.ERROR:
1398 log_information['level'] = LogMessage.ERROR 1400 log_information['level'] = LogMessage.ERROR
1399 elif event.levelno == formatter.WARNING: 1401 elif event.levelno == formatter.WARNING:
1400 log_information['level'] = LogMessage.WARNING 1402 log_information['level'] = LogMessage.WARNING
@@ -1407,6 +1409,7 @@ class BuildInfoHelper(object):
1407 log_information['pathname'] = event.pathname 1409 log_information['pathname'] = event.pathname
1408 log_information['lineno'] = event.lineno 1410 log_information['lineno'] = event.lineno
1409 logger.info("Logging error 2: %s", log_information) 1411 logger.info("Logging error 2: %s", log_information)
1412
1410 self.orm_wrapper.create_logmessage(log_information) 1413 self.orm_wrapper.create_logmessage(log_information)
1411 1414
1412 def close(self, errorcode): 1415 def close(self, errorcode):
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py
index dbe0d0980a..0ed774ee7b 100644
--- a/bitbake/lib/bb/ui/toasterui.py
+++ b/bitbake/lib/bb/ui/toasterui.py
@@ -145,10 +145,12 @@ def main(server, eventHandler, params ):
145 event.levelno = formatter.ERROR 145 event.levelno = formatter.ERROR
146 146
147 buildinfohelper.store_log_event(event) 147 buildinfohelper.store_log_event(event)
148
148 if event.levelno >= formatter.ERROR: 149 if event.levelno >= formatter.ERROR:
149 errors = errors + 1 150 errors = errors + 1
150 elif event.levelno == formatter.WARNING: 151 elif event.levelno == formatter.WARNING:
151 warnings = warnings + 1 152 warnings = warnings + 1
153
152 # For "normal" logging conditions, don't show note logs from tasks 154 # For "normal" logging conditions, don't show note logs from tasks
153 # but do show them if the user has changed the default log level to 155 # but do show them if the user has changed the default log level to
154 # include verbose/debug messages 156 # include verbose/debug messages