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

Method error

Lib/logging/__init__.py:1542–1552  ·  view source on GitHub ↗

Log 'msg % args' with severity 'ERROR'. To pass exception information, use the keyword argument exc_info with a true value, e.g. logger.error("Houston, we have a %s", "major problem", exc_info=True)

(self, msg, *args, **kwargs)

Source from the content-addressed store, hash-verified

1540 self.warning(msg, *args, **kwargs)
1541
1542 def error(self, msg, *args, **kwargs):
1543 """
1544 Log 'msg % args' with severity 'ERROR'.
1545
1546 To pass exception information, use the keyword argument exc_info with
1547 a true value, e.g.
1548
1549 logger.error("Houston, we have a %s", "major problem", exc_info=True)
1550 """
1551 if self.isEnabledFor(ERROR):
1552 self._log(ERROR, msg, args, **kwargs)
1553
1554 def exception(self, msg, *args, exc_info=True, **kwargs):
1555 """

Callers 2

exceptionMethod · 0.95
errorFunction · 0.45

Calls 2

isEnabledForMethod · 0.95
_logMethod · 0.95

Tested by

no test coverage detected