browser: log runs

This commit is contained in:
Sebastien Bourdeauducq 2016-07-03 12:20:23 +08:00
parent cc9edc1555
commit 0173a40be0
1 changed files with 3 additions and 0 deletions

View File

@ -309,6 +309,7 @@ class _ExperimentDock(QtWidgets.QMdiSubWindow):
self._run_task.add_done_callback(done) self._run_task.add_done_callback(done)
async def _get_run_task(self, expid): async def _get_run_task(self, expid):
logger.info("Running '%s'...", self.expurl)
worker = Worker(self._area.worker_handlers) worker = Worker(self._area.worker_handlers)
try: try:
await worker.build(rid=None, pipeline_name="browser", await worker.build(rid=None, pipeline_name="browser",
@ -318,6 +319,8 @@ class _ExperimentDock(QtWidgets.QMdiSubWindow):
except: except:
logger.error("Failed to run '%s'", self.expurl) logger.error("Failed to run '%s'", self.expurl)
log_worker_exception() log_worker_exception()
else:
logger.info("Finished running '%s'", self.expurl)
finally: finally:
await worker.close() await worker.close()