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

Function reset_format

src/diffusers/utils/logging.py:254–263  ·  view source on GitHub ↗

Resets the formatting for 🤗 Diffusers' loggers. All handlers currently bound to the root logger are affected by this method.

()

Source from the content-addressed store, hash-verified

252
253
254def reset_format() -> None:
255 """
256 Resets the formatting for 🤗 Diffusers' loggers.
257
258 All handlers currently bound to the root logger are affected by this method.
259 """
260 handlers = _get_library_root_logger().handlers
261
262 for handler in handlers:
263 handler.setFormatter(None)
264
265
266def warning_advice(self, *args, **kwargs) -> None:

Callers

nothing calls this directly

Calls 1

_get_library_root_loggerFunction · 0.85

Tested by

no test coverage detected