MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / _reset_library_root_logger

Function _reset_library_root_logger

bmtools/utils/logging.py:98–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97
98def _reset_library_root_logger() -> None:
99
100 global _default_handler
101
102 with _lock:
103 if not _default_handler:
104 return
105
106 library_root_logger = _get_library_root_logger()
107 library_root_logger.removeHandler(_default_handler)
108 library_root_logger.setLevel(logging.NOTSET)
109 _default_handler = None
110
111
112def get_log_levels_dict():

Callers

nothing calls this directly

Calls 1

_get_library_root_loggerFunction · 0.85

Tested by

no test coverage detected