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

Function error

Lib/logging/__init__.py:2177–2185  ·  view source on GitHub ↗

Log a message with severity 'ERROR' 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

2175 critical(msg, *args, **kwargs)
2176
2177def error(msg, *args, **kwargs):
2178 """
2179 Log a message with severity 'ERROR' on the root logger. If the logger has
2180 no handlers, call basicConfig() to add a console handler with a pre-defined
2181 format.
2182 """
2183 if len(root.handlers) == 0:
2184 basicConfig()
2185 root.error(msg, *args, **kwargs)
2186
2187def exception(msg, *args, exc_info=True, **kwargs):
2188 """

Callers 1

exceptionFunction · 0.70

Calls 2

basicConfigFunction · 0.85
errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…