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

Function exception

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

2185 root.error(msg, *args, **kwargs)
2186
2187def exception(msg, *args, exc_info=True, **kwargs):
2188 """
2189 Log a message with severity 'ERROR' on the root logger, with exception
2190 information. If the logger has no handlers, basicConfig() is called to add
2191 a console handler with a pre-defined format.
2192 """
2193 error(msg, *args, exc_info=exc_info, **kwargs)
2194
2195def warning(msg, *args, **kwargs):
2196 """

Callers 3

copyfileobjFunction · 0.85
set_exceptionMethod · 0.85
raiserFunction · 0.85

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…