(self, msg, *args, **kwargs)
| 23 | |
| 24 | |
| 25 | def warning_once(self, msg, *args, **kwargs): |
| 26 | hash_id = kwargs.get('hash_id') or msg |
| 27 | if hash_id in warning_set: |
| 28 | return |
| 29 | warning_set.add(hash_id) |
| 30 | self.warning(msg) |
| 31 | |
| 32 | |
| 33 | def get_logger(log_file: Optional[str] = None, |