browser: cut logging verbosity

This commit is contained in:
Sebastien Bourdeauducq 2016-06-12 13:11:36 +08:00
parent 3aab77d7a0
commit ad3d7dc687
2 changed files with 4 additions and 4 deletions

View File

@ -225,7 +225,7 @@ class _ExperimentDock(QtWidgets.QMdiSubWindow):
def dropEvent(self, ev): def dropEvent(self, ev):
for uri in ev.mimeData().urls(): for uri in ev.mimeData().urls():
if uri.scheme() == "file": if uri.scheme() == "file":
logger.info("Loading HDF5 arguments from %s", uri.path()) logger.debug("Loading HDF5 arguments from %s", uri.path())
asyncio.ensure_future(self._load_hdf5_task(uri.path())) asyncio.ensure_future(self._load_hdf5_task(uri.path()))
break break
@ -289,7 +289,7 @@ class _ExperimentDock(QtWidgets.QMdiSubWindow):
self._terminate.setEnabled(True) self._terminate.setEnabled(True)
def done(fut): def done(fut):
logger.info("Analysis done") logger.debug("Analysis done")
self._run_task = None self._run_task = None
self._run.setEnabled(True) self._run.setEnabled(True)
self._terminate.setEnabled(False) self._terminate.setEnabled(False)
@ -405,7 +405,7 @@ class ExperimentsArea(QtWidgets.QMdiArea):
except asyncio.CancelledError: except asyncio.CancelledError:
return return
self.current_dir = os.path.dirname(file) self.current_dir = os.path.dirname(file)
logger.info("Opening experiment %s", file) logger.debug("Opening experiment %s", file)
try: try:
description = await self.examine(file) description = await self.examine(file)
except: except:

View File

@ -171,7 +171,7 @@ class FilesDock(QtWidgets.QDockWidget):
f = open_h5(info) f = open_h5(info)
if not f: if not f:
return return
logger.info("loading datasets from %s", info.filePath()) logger.debug("loading datasets from %s", info.filePath())
with f: with f:
if "datasets" not in f: if "datasets" not in f:
return return