From patchwork Thu Sep 5 17:49:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Terceiro X-Patchwork-Id: 19788 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0796324869 for ; Thu, 5 Sep 2013 17:49:31 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id 1sf2248882qee.10 for ; Thu, 05 Sep 2013 10:49:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mime-version:to:from:subject :message-id:date:reply-to:sender:errors-to:precedence :x-original-sender:x-original-authentication-results:mailing-list :list-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=4buqass5q6Cc3tN2/WmpWMeO8CW8YaZBrOE9oXVBRyE=; b=VlQ1mp5FUDaawTZ/a8qGs4nSHaIto74tMHMQItUTF9fVREesjDMbzk2Y9kP2k8tQPX dDxD6+NIxoBi9mNtPB57XC/HjAzbkCo5pK3ODPotwpxwC56Sv69sB1EVyjMCm+GEZllg PKXgRm0M5ggZs8AGtTjjdnEWLUORc7TWJcWa51kR7dww4v2TwnmRzLEVQpwuvS7iT51B oeyWkQajWU19cJV4x0Yju2zhEs3Syu+0PoEKyJVafIsiG7rARCUS/P3XnDWoSU0+Dzb1 sJIoAUuonWJe0FNWDcb0ijTcWzpJQLfjp333rDECBl/Qrz7MlFKFqg/M+Nha0qh70iHA k1YA== X-Received: by 10.236.189.37 with SMTP id b25mr3332379yhn.48.1378403370632; Thu, 05 Sep 2013 10:49:30 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.48.41 with SMTP id i9ls607167qen.44.gmail; Thu, 05 Sep 2013 10:49:30 -0700 (PDT) X-Received: by 10.52.230.233 with SMTP id tb9mr4634896vdc.17.1378403370526; Thu, 05 Sep 2013 10:49:30 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id t10si7565770vcr.35.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Sep 2013 10:49:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id ha12so1377735vcb.23 for ; Thu, 05 Sep 2013 10:49:30 -0700 (PDT) X-Gm-Message-State: ALoCoQklPSq8GTRZ0svpsD8WEeE5/Stchzglci2ZAtJrCjizXnklYQwPUw4n7MFHtm5zUrp/WleL X-Received: by 10.52.114.231 with SMTP id jj7mr4898990vdb.2.1378403370395; Thu, 05 Sep 2013 10:49:30 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp293755vcz; Thu, 5 Sep 2013 10:49:29 -0700 (PDT) X-Received: by 10.194.93.3 with SMTP id cq3mr7992132wjb.26.1378403369337; Thu, 05 Sep 2013 10:49:29 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id m8si3598204wiy.72.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 05 Sep 2013 10:49:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1VHdgO-0004dJ-G6 for ; Thu, 05 Sep 2013 17:49:28 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 6A00AE94DB for ; Thu, 5 Sep 2013 17:49:28 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dispatcher X-Launchpad-Branch: ~linaro-validation/lava-dispatcher/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 668 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 668: Better logging of error messages for the scheduler to consume Message-Id: <20130905174928.10879.84647.launchpad@ackee.canonical.com> Date: Thu, 05 Sep 2013 17:49:28 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: list X-Generated-By: Launchpad (canonical.com); Revision="16758"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 8f0ff0f559ae62e3447c01bdabda76812520a38d X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: noreply@launchpad.net X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Merge authors: Antonio Terceiro (terceiro) Related merge proposals: https://code.launchpad.net/~terceiro/lava-dispatcher/better-logging/+merge/183993 proposed by: Antonio Terceiro (terceiro) review: Approve - Tyler Baker (tyler-baker) ------------------------------------------------------------ revno: 668 [merge] committer: Antonio Terceiro branch nick: trunk timestamp: Thu 2013-09-05 14:48:39 -0300 message: Better logging of error messages for the scheduler to consume modified: lava_dispatcher/job.py --- lp:lava-dispatcher https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk You are subscribed to branch lp:lava-dispatcher. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription === modified file 'lava_dispatcher/job.py' --- lava_dispatcher/job.py 2013-08-28 14:55:50 +0000 +++ lava_dispatcher/job.py 2013-09-05 17:05:29 +0000 @@ -302,7 +302,7 @@ logging.warn("pexpect timed out, pass with status %s" % status) pass except Exception as err: - logging.info("General Exception") + logging.info("General Exception: %s" % unicode(str(err))) raise else: logging.info("setting status pass") @@ -324,6 +324,7 @@ err_msg += "Lava failed on test: %s" % \ params.get('test_name', "Unknown") err_msg = err_msg + traceback.format_exc() + print("ErrorMessage: %s" % unicode(str(err))) print err_msg else: logging.info(