MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / _reset_library_root_logger

Function _reset_library_root_logger

src/diffusers/utils/logging.py:94–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92
93
94def _reset_library_root_logger() -> None:
95 global _default_handler
96
97 with _lock:
98 if not _default_handler:
99 return
100
101 library_root_logger = _get_library_root_logger()
102 library_root_logger.removeHandler(_default_handler)
103 library_root_logger.setLevel(logging.NOTSET)
104 _default_handler = None
105
106
107def get_log_levels_dict() -> Dict[str, int]:

Callers

nothing calls this directly

Calls 1

_get_library_root_loggerFunction · 0.85

Tested by

no test coverage detected