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

Method error

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

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

Callers 2

exceptionMethod · 0.95
errorFunction · 0.45

Calls 2

isEnabledForMethod · 0.95
_logMethod · 0.95

Tested by

no test coverage detected