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)
| 1489 | self._log(INFO, msg, args, **kwargs) |
| 1490 | |
| 1491 | def warning(self, msg, *args, **kwargs): |
| 1492 | """ |
| 1493 | Log 'msg % args' with severity 'WARNING'. |
| 1494 | |
| 1495 | To pass exception information, use the keyword argument exc_info with |
| 1496 | a true value, e.g. |
| 1497 | |
| 1498 | logger.warning("Houston, we have a %s", "bit of a problem", exc_info=True) |
| 1499 | """ |
| 1500 | if self.isEnabledFor(WARNING): |
| 1501 | self._log(WARNING, msg, args, **kwargs) |
| 1502 | |
| 1503 | def warn(self, msg, *args, **kwargs): |
| 1504 | warnings.warn("The 'warn' method is deprecated, " |