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

Function enable_propagation

src/transformers/utils/logging.py:280–287  ·  view source on GitHub ↗

Enable propagation of the library log outputs. Please disable the HuggingFace Transformers's default handler to prevent double logging if the root logger has been configured.

()

Source from the content-addressed store, hash-verified

278
279
280def enable_propagation() -> None:
281 """
282 Enable propagation of the library log outputs. Please disable the HuggingFace Transformers's default handler to
283 prevent double logging if the root logger has been configured.
284 """
285
286 _configure_library_root_logger()
287 _get_library_root_logger().propagate = True
288
289
290def enable_explicit_format() -> None:

Callers

nothing calls this directly

Calls 2

_get_library_root_loggerFunction · 0.85

Tested by

no test coverage detected