Skip to content

Commit 30d03e0

Browse files
committed
[JTH] push stable working version for RBF scipy interpolator
1 parent 747f92f commit 30d03e0

File tree

4 files changed

+521
-397
lines changed

4 files changed

+521
-397
lines changed

bluemath_tk/core/logging.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ def get_file_logger(
3737
>>> # 2023-10-22 14:55:23,456 - my_app_logger - INFO - This is an info message.
3838
>>> # 2023-10-22 14:55:23,457 - my_app_logger - WARNING - This is a warning message.
3939
>>> # 2023-10-22 14:55:23,458 - my_app_logger - ERROR - This is an error message.
40-
41-
Notes
42-
-----
43-
- TODO: Check a way to remove existing loggers to avoid duplicate logs.
4440
"""
4541

42+
# If a logger with the specified name already exists, return it
43+
if name in logging.Logger.manager.loggerDict:
44+
return logging.getLogger(name)
45+
4646
# Create a logger with the specified name
4747
logger = logging.getLogger(name)
4848
logger.setLevel(level)

0 commit comments

Comments
 (0)