From: bavery <brian.avery@intel.com>
To: bitbake-devel@lists.openembedded.org
Subject: [PATCHV4 01/17] runqueue: improve exception logging
Date: Fri, 15 Jul 2016 09:44:01 -0700 [thread overview]
Message-ID: <1468601041-15423-1-git-send-email-brian.avery@intel.com> (raw)
In-Reply-To: <4551b56f132497c055f39567946a5d3be347d770.1468363530.git.brian.avery@intel.com>
From: Ed Bartosh <ed.bartosh@linux.intel.com>
Runqueue errors direct the user to view the "failure below",
but no additional error message is available.
Log the stacktrace so that the user can see what went wrong.
Also fix a typo in the log message.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
---
lib/bb/runqueue.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index c9b6b84..48c01c0 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1175,8 +1175,8 @@ class RunQueue:
pass
self.state = runQueueComplete
raise
- except:
- logger.error("An uncaught exception occured in runqueue, please see the failure below:")
+ except Exception as err:
+ logger.exception("An uncaught exception occurred in runqueue")
try:
self.teardown_workers()
except:
--
1.9.1
next prev parent reply other threads:[~2016-07-15 16:42 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-12 22:54 [PATCH 00/17] toaster: Better SDK artifacts and fstypes V2 bavery
2016-07-12 22:54 ` [PATCH 01/17] runqueue: improve exception logging bavery
2016-07-12 22:58 ` Christopher Larson
2016-07-15 0:12 ` [PATCHV3 " bavery
2016-07-15 16:44 ` bavery [this message]
2016-07-12 22:54 ` [PATCH 02/17] toaster: display Target targets in build dashboard bavery
2016-07-12 22:54 ` [PATCH 03/17] toaster: do image and artifact scan on BuildCompleted bavery
2016-07-12 22:54 ` [PATCH 04/17] toaster: improve image file suffix retrieval bavery
2016-07-12 22:54 ` [PATCH 05/17] toaster: attach kernel artifacts to targets bavery
2016-07-12 22:54 ` [PATCH 06/17] buildinfohelper: fix retrieval of targets bavery
2016-07-12 22:54 ` [PATCH 07/17] toaster: improve scan for SDK artifacts bavery
2016-07-12 22:54 ` [PATCH 08/17] buildinfohelper: only record image files for tasks which make images bavery
2016-07-12 22:54 ` [PATCH 09/17] toaster: use has_images() methods to display images correctly bavery
2016-07-12 22:54 ` [PATCH 10/17] toaster: only show "New custom image" button for builds with image targets bavery
2016-07-12 22:54 ` [PATCH 11/17] toaster: show manifests in their own section of the build dashboard bavery
2016-07-12 22:54 ` [PATCH 12/17] toaster: better display of targets which produced no images bavery
2016-07-12 22:54 ` [PATCH 13/17] toaster: add package manifest path to Target objects bavery
2016-07-12 22:54 ` [PATCH 14/17] toaster: the customise image button shouldn't rely on targets bavery
2016-07-12 22:54 ` [PATCH 15/17] toaster-tests: add tests for build artifact display on build dashboard bavery
2016-07-12 22:54 ` [PATCH 16/17] toaster-tests: new custom image button shouldn't show for non-image builds bavery
2016-07-12 22:54 ` [PATCH 17/17] toaster-tests: package count/size " bavery
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1468601041-15423-1-git-send-email-brian.avery@intel.com \
--to=brian.avery@intel.com \
--cc=bitbake-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.