MCPcopy
hub / github.com/huggingface/transformers / disable_propagation

Function disable_propagation

src/transformers/utils/logging.py:271–277  ·  view source on GitHub ↗

Disable propagation of the library log outputs. Note that log propagation is disabled by default.

()

Source from the content-addressed store, hash-verified

269
270
271def disable_propagation() -> None:
272 """
273 Disable propagation of the library log outputs. Note that log propagation is disabled by default.
274 """
275
276 _configure_library_root_logger()
277 _get_library_root_logger().propagate = False
278
279
280def enable_propagation() -> None:

Callers

nothing calls this directly

Calls 2

_get_library_root_loggerFunction · 0.85

Tested by

no test coverage detected