2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-26 03:38:25 +08:00

browser: log_worker_exception

This commit is contained in:
Robert Jördens 2016-05-20 16:09:49 +02:00
parent 3db1a7cf01
commit 9c30f62790

View File

@ -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.gui.entries import argty_to_entry
from artiq.protocols import pyon from artiq.protocols import pyon
from artiq.protocols.sync_struct import process_mod 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__) logger = logging.getLogger(__name__)
@ -297,10 +297,8 @@ class _ExperimentDock(QtWidgets.QMdiSubWindow):
expid=expid, priority=0) expid=expid, priority=0)
await worker.analyze() await worker.analyze()
except: except:
# May happen when experiment has been removed logger.info("Failed to run '%s'", self.expurl)
# from repository/explist log_worker_exception()
logger.error("Failed to run '%s'",
self.expurl, exc_info=True)
finally: finally:
await worker.close() await worker.close()