summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/buildinfohelper.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 524a5b0942..31323d281f 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -1603,14 +1603,14 @@ class BuildInfoHelper(object):
1603 mockevent.lineno = -1 1603 mockevent.lineno = -1
1604 self.store_log_event(mockevent) 1604 self.store_log_event(mockevent)
1605 1605
1606 def store_log_event(self, event): 1606 def store_log_event(self, event,cli_backlog=True):
1607 self._ensure_build() 1607 self._ensure_build()
1608 1608
1609 if event.levelno < formatter.WARNING: 1609 if event.levelno < formatter.WARNING:
1610 return 1610 return
1611 1611
1612 # early return for CLI builds 1612 # early return for CLI builds
1613 if self.brbe is None: 1613 if cli_backlog and self.brbe is None:
1614 if not 'backlog' in self.internal_state: 1614 if not 'backlog' in self.internal_state:
1615 self.internal_state['backlog'] = [] 1615 self.internal_state['backlog'] = []
1616 self.internal_state['backlog'].append(event) 1616 self.internal_state['backlog'].append(event)
@@ -1622,7 +1622,7 @@ class BuildInfoHelper(object):
1622 tempevent = self.internal_state['backlog'].pop() 1622 tempevent = self.internal_state['backlog'].pop()
1623 logger.debug(1, "buildinfohelper: Saving stored event %s " 1623 logger.debug(1, "buildinfohelper: Saving stored event %s "
1624 % tempevent) 1624 % tempevent)
1625 self.store_log_event(tempevent) 1625 self.store_log_event(tempevent,cli_backlog)
1626 else: 1626 else:
1627 logger.info("buildinfohelper: All events saved") 1627 logger.info("buildinfohelper: All events saved")
1628 del self.internal_state['backlog'] 1628 del self.internal_state['backlog']
@@ -1987,7 +1987,8 @@ class BuildInfoHelper(object):
1987 if 'backlog' in self.internal_state: 1987 if 'backlog' in self.internal_state:
1988 # we save missed events in the database for the current build 1988 # we save missed events in the database for the current build
1989 tempevent = self.internal_state['backlog'].pop() 1989 tempevent = self.internal_state['backlog'].pop()
1990 self.store_log_event(tempevent) 1990 # Do not skip command line build events
1991 self.store_log_event(tempevent,False)
1991 1992
1992 if not connection.features.autocommits_when_autocommit_is_off: 1993 if not connection.features.autocommits_when_autocommit_is_off:
1993 transaction.set_autocommit(True) 1994 transaction.set_autocommit(True)