path: root/bitbake/lib/bb/ui/
diff options
authorAlexandru DAMIAN <>2014-12-09 11:57:38 +0000
committerRichard Purdie <>2014-12-18 10:24:06 +0000
commit85a17f86ea2edf24b54aa62bd25e10ff522cb6e7 (patch)
tree69baa4d959be832b5c096b7d69b0fc2bcb2247b5 /bitbake/lib/bb/ui/
parentd086fa3aed34a05d52e73c255ca22379149a64a1 (diff)
bitbake: add option to write offline event log file
This patch adds a "-w/--write-log" option to bitbake that writes an event log file for the current build. The name of the file is passed as a parameter to the "-w" argument. If the parameter is the empty string '', the file name is generated in the form bitbake_eventlog_DATE.json, where DATE is the current date and time, with second precision. The "-w" option can also be supplied as the BBEVENTLOG environment variable. We add a script, toater-eventreplay, that reads an event log file and loads the data into a Toaster database, creating a build entry. We modify the toasterui to fix minor issues with reading events from an event log file. Performance impact is undetectable under no-task executed builds. (Bitbake rev: 1befb4a783bb7b7b387d4b5ee08830d9516f1ac2) Signed-off-by: Alexandru DAMIAN <> Signed-off-by: Richard Purdie <>
Diffstat (limited to 'bitbake/lib/bb/ui/')
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/ b/bitbake/lib/bb/ui/
index 7a316be57c..a85ad5a06a 100644
--- a/bitbake/lib/bb/ui/
+++ b/bitbake/lib/bb/ui/
@@ -309,7 +309,7 @@ def main(server, eventHandler, params ):
buildinfohelper.store_log_exception("%s\n%s" % (str(e), exception_data))
except Exception as ce:
- print("CRITICAL: failed to to save toaster exception to the database: %s" % str(ce))
+ logger.error("CRITICAL - Failed to to save toaster exception to the database: %s" % str(ce))