MCPcopy Index your code
hub / github.com/huggingface/diffusers / get_verbosity

Function get_verbosity

src/diffusers/utils/logging.py:147–164  ·  view source on GitHub ↗

Return the current level for the 🤗 Diffusers' root logger as an `int`. Returns: `int`: Logging level integers which can be one of: - `50`: `diffusers.logging.CRITICAL` or `diffusers.logging.FATAL` - `40`: `diffusers.logging.ERROR` -

()

Source from the content-addressed store, hash-verified

145
146
147def get_verbosity() -> int:
148 """
149 Return the current level for the 🤗 Diffusers' root logger as an `int`.
150
151 Returns:
152 `int`:
153 Logging level integers which can be one of:
154
155 - `50`: `diffusers.logging.CRITICAL` or `diffusers.logging.FATAL`
156 - `40`: `diffusers.logging.ERROR`
157 - `30`: `diffusers.logging.WARNING` or `diffusers.logging.WARN`
158 - `20`: `diffusers.logging.INFO`
159 - `10`: `diffusers.logging.DEBUG`
160
161 """
162
163 _configure_library_root_logger()
164 return _get_library_root_logger().getEffectiveLevel()
165
166
167def set_verbosity(verbosity: int) -> None:

Callers

nothing calls this directly

Calls 2

_get_library_root_loggerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…