Skip to content

Commit

Permalink
fix: remove custom logging layer 45, defaulting to logging.INFO
Browse files Browse the repository at this point in the history
  • Loading branch information
Lopa10ko committed Jun 13, 2024
1 parent 27315b2 commit da4fc93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions fedot/api/api_utils/assumptions/assumptions_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ def fit_assumption_and_check_correctness(self,
pipeline.predict(data_test)
self.log.info('Initial pipeline was fitted successfully')

MemoryAnalytics.log(self.log,
additional_info='fitting of the initial pipeline',
logging_level=45) # message logging level
MemoryAnalytics.log(self.log, additional_info='fitting of the initial pipeline')

except Exception as ex:
self._raise_evaluating_exception(ex)
Expand Down
3 changes: 1 addition & 2 deletions fedot/utilities/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ def finish(cls):
"""
Finish memory monitoring session
"""
cls.log(additional_info='finish',
logging_level=45) # message logging level
cls.log(additional_info='finish')
tracemalloc.stop()
cls.is_active = False

Expand Down

0 comments on commit da4fc93

Please sign in to comment.