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)
| 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 | """ |
no test coverage detected