MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / reset_format

Function reset_format

diffusers/src/diffusers/utils/logging.py:256–265  ·  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

254
255
256def reset_format() -> None:
257 """
258 Resets the formatting for 🤗 Diffusers' loggers.
259
260 All handlers currently bound to the root logger are affected by this method.
261 """
262 handlers = _get_library_root_logger().handlers
263
264 for handler in handlers:
265 handler.setFormatter(None)
266
267
268def 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