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

Function exception

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

Log a message with severity 'ERROR' on the root logger, with exception information. If the logger has no handlers, basicConfig() is called to add a console handler with a pre-defined format.

(msg, *args, exc_info=True, **kwargs)

Source from the content-addressed store, hash-verified

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

Callers 3

copyfileobjFunction · 0.50
set_exceptionMethod · 0.50
raiserFunction · 0.50

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected