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

Function debug

Lib/logging/__init__.py:2220–2228  ·  view source on GitHub ↗

Log a message with severity 'DEBUG' on the root logger. If the logger has no handlers, call basicConfig() to add a console handler with a pre-defined format.

(msg, *args, **kwargs)

Source from the content-addressed store, hash-verified

2218 root.info(msg, *args, **kwargs)
2219
2220def debug(msg, *args, **kwargs):
2221 """
2222 Log a message with severity 'DEBUG' on the root logger. If the logger has
2223 no handlers, call basicConfig() to add a console handler with a pre-defined
2224 format.
2225 """
2226 if len(root.handlers) == 0:
2227 basicConfig()
2228 root.debug(msg, *args, **kwargs)
2229
2230def log(level, msg, *args, **kwargs):
2231 """

Callers

nothing calls this directly

Calls 2

basicConfigFunction · 0.85
debugMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…