From 9c30f62790b0f0eda231fbae65a4aad01e8db00b Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Fri, 20 May 2016 16:09:49 +0200 Subject: [PATCH] browser: log_worker_exception --- artiq/browser/experiments.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/artiq/browser/experiments.py b/artiq/browser/experiments.py index bbe997bbc..d6f1da9dd 100644 --- a/artiq/browser/experiments.py +++ b/artiq/browser/experiments.py @@ -12,7 +12,7 @@ from artiq.gui.tools import LayoutWidget, log_level_to_name, get_open_file_name from artiq.gui.entries import argty_to_entry from artiq.protocols import pyon from artiq.protocols.sync_struct import process_mod -from artiq.master.worker import Worker +from artiq.master.worker import Worker, log_worker_exception logger = logging.getLogger(__name__) @@ -297,10 +297,8 @@ class _ExperimentDock(QtWidgets.QMdiSubWindow): expid=expid, priority=0) await worker.analyze() except: - # May happen when experiment has been removed - # from repository/explist - logger.error("Failed to run '%s'", - self.expurl, exc_info=True) + logger.info("Failed to run '%s'", self.expurl) + log_worker_exception() finally: await worker.close()