MCPcopy Index your code
hub / github.com/python/cpython / disable

Function disable

Lib/logging/__init__.py:2240–2245  ·  view source on GitHub ↗

Disable all logging calls of severity 'level' and below.

(level=CRITICAL)

Source from the content-addressed store, hash-verified

2238 root.log(level, msg, *args, **kwargs)
2239
2240def disable(level=CRITICAL):
2241 """
2242 Disable all logging calls of severity 'level' and below.
2243 """
2244 root.manager.disable = level
2245 root.manager._clear_cache()
2246
2247def shutdown(handlerList=_handlerList):
2248 """

Callers

nothing calls this directly

Calls 1

_clear_cacheMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…