Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mail.openembedded.org (Postfix) with ESMTP id C52F56FF93 for ; Fri, 15 Jul 2016 00:10:55 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP; 14 Jul 2016 17:10:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,365,1464678000"; d="scan'208";a="1017184833" Received: from bavery-ws-desk.jf.intel.com ([10.7.201.28]) by orsmga002.jf.intel.com with ESMTP; 14 Jul 2016 17:10:56 -0700 From: bavery To: bitbake-devel@lists.openembedded.org Date: Thu, 14 Jul 2016 17:12:12 -0700 Message-Id: <1468541532-36152-1-git-send-email-brian.avery@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <4551b56f132497c055f39567946a5d3be347d770.1468363530.git.brian.avery@intel.com> References: <4551b56f132497c055f39567946a5d3be347d770.1468363530.git.brian.avery@intel.com> Subject: [PATCHV3 01/17] runqueue: improve exception logging X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2016 00:10:57 -0000 From: Ed Bartosh 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 Signed-off-by: bavery --- bitbake/lib/bb/runqueue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index c9b6b84..48c01c0 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/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