MCPcopy Index your code
hub / github.com/RustPython/RustPython / error

Function error

Lib/logging/__init__.py:2167–2175  ·  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

2165 critical(msg, *args, **kwargs)
2166
2167def error(msg, *args, **kwargs):
2168 """
2169 Log a message with severity 'ERROR' on the root logger. If the logger has
2170 no handlers, call basicConfig() to add a console handler with a pre-defined
2171 format.
2172 """
2173 if len(root.handlers) == 0:
2174 basicConfig()
2175 root.error(msg, *args, **kwargs)
2176
2177def exception(msg, *args, exc_info=True, **kwargs):
2178 """

Callers 1

exceptionFunction · 0.70

Calls 3

lenFunction · 0.85
basicConfigFunction · 0.85
errorMethod · 0.45

Tested by

no test coverage detected