Log 'msg % args' with severity 'WARNING'. To pass exception information, use the keyword argument exc_info with a true value, e.g. logger.warning("Houston, we have a %s", "bit of a problem", exc_info=True)
(self, msg, *args, **kwargs)
| 1523 | self._log(INFO, msg, args, **kwargs) |
| 1524 | |
| 1525 | def warning(self, msg, *args, **kwargs): |
| 1526 | """ |
| 1527 | Log 'msg % args' with severity 'WARNING'. |
| 1528 | |
| 1529 | To pass exception information, use the keyword argument exc_info with |
| 1530 | a true value, e.g. |
| 1531 | |
| 1532 | logger.warning("Houston, we have a %s", "bit of a problem", exc_info=True) |
| 1533 | """ |
| 1534 | if self.isEnabledFor(WARNING): |
| 1535 | self._log(WARNING, msg, args, **kwargs) |
| 1536 | |
| 1537 | def warn(self, msg, *args, **kwargs): |
| 1538 | warnings.warn("The 'warn' method is deprecated, " |