Skip to content

Commit 21a889f

Browse files
Use __name__ instead of root for client logger NREL#111 (comment)
1 parent a49586b commit 21a889f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/geophires_x_client/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212

1313

1414
class GeophiresXClient:
15-
def __init__(self, enable_caching=True, logger_name='root'):
15+
def __init__(self, enable_caching=True, logger_name=None):
16+
if logger_name is None:
17+
logger_name = __name__
18+
1619
self._logger = _get_logger(logger_name=logger_name)
1720
self._enable_caching = enable_caching
1821
self._cache = {}

0 commit comments

Comments
 (0)