diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-19 15:19:15 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-19 15:19:15 -0500 |
commit | ee53aa195ad78d03e5b252ee8f9f51f35bc75df3 (patch) | |
tree | 39b91b91a02b8ce3c2245161bf8daa64e18a51b0 /qolab/gui/web.py | |
parent | d5ff463d11a7ce38d9a2700eeeaed7c4189b5c26 (diff) | |
download | pyExpControl-ee53aa195ad78d03e5b252ee8f9f51f35bc75df3.tar.gz pyExpControl-ee53aa195ad78d03e5b252ee8f9f51f35bc75df3.zip |
gui use logging
Diffstat (limited to 'qolab/gui/web.py')
-rw-r--r-- | qolab/gui/web.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qolab/gui/web.py b/qolab/gui/web.py index 6013e14..4c23ea4 100644 --- a/qolab/gui/web.py +++ b/qolab/gui/web.py @@ -2,6 +2,9 @@ import justpy as jp import asyncio import matplotlib.pyplot as plt +import logging +logger = logging.getLogger('qolab.gui.web') + button_classes = 'bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full' label_div_classes = 'py-2 px-4' checkbox_classed = label_div_classes @@ -170,7 +173,7 @@ class QOLSaveControls(jp.Div): return if self.component_with_data is None: return - print(f'saving to {fname}') + logger.debug(f'saving to {fname}') self.component_with_data.save(fname) async def _next_file(self, msg): @@ -180,6 +183,7 @@ class QOLSaveControls(jp.Div): def next_file(self): if self.getNextDataFile is not None: fname = self.getNextDataFile() + logger.info(f'Data will be saved to {fname}') self.file_name.setValue( fname ) if self.component_with_data is not None: self.component_with_data.clear_last_saved_pos() |