Commit b73849af authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed logging issue. Pinned Python version to 3.7+.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 05242550
Pipeline #12575 failed with stage
in 7 minutes and 19 seconds
......@@ -2162,17 +2162,19 @@ class GMS_object(object):
time.sleep(5)
def close_loggers(self):
if self._logger not in [None, 'not set']:
self.logger.close() # this runs misc.logging.GMS_logger.close()
self.logger = None # also adds current captured stream to self.log
# self.GMS_identifier and self.logger are getters - since self.GMS_identifier gets its logger from self.logger,
# self.logger has to be closed AFTER closing self.GMS_identifier.logger
if self.GMS_identifier and self.GMS_identifier.logger not in [None, 'not set']:
self.GMS_identifier.logger.close()
self.GMS_identifier.logger = None
if self.MetaObj and self.MetaObj.logger not in [None, 'not set']:
self.MetaObj.logger.close()
self.MetaObj.logger = None
if self.GMS_identifier and self.GMS_identifier.logger not in [None, 'not set']:
self.GMS_identifier.logger.close()
self.GMS_identifier.logger = None
if self._logger not in [None, 'not set']:
self._logger.close() # this runs misc.logging.GMS_logger.close()
self._logger = None # also adds current captured stream to self.log
def delete_previous_proc_level_results(self):
"""Deletes results of the previous processing level if the respective flag CFG.exec_L**P[2]) is set to True.
......
......@@ -4,7 +4,7 @@ channels:
- conda-forge
dependencies:
- python=3.*.*
- python>=3.7.*
- pip
- pyqt
- numpy
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment