A backwards compatible way of accessing log_message.
(self)
| 2573 | |
| 2574 | @property |
| 2575 | def log_message(self) -> Optional[str]: |
| 2576 | """ |
| 2577 | A backwards compatible way of accessing log_message. |
| 2578 | """ |
| 2579 | if self._log_message and not self.args: |
| 2580 | return self._log_message.replace("%", "%%") |
| 2581 | return self._log_message |
| 2582 | |
| 2583 | def get_message(self) -> Optional[str]: |
| 2584 | if self._log_message and self.args: |