Logs message to stderr if logging isn't initialized.
(logger: logging.Logger, level: int, message: str)
| 15 | |
| 16 | |
| 17 | def log(logger: logging.Logger, level: int, message: str) -> None: |
| 18 | """Logs message to stderr if logging isn't initialized.""" |
| 19 | |
| 20 | if logger.parent and logger.parent.name == "root": |
| 21 | print(message, file=sys.stderr) |
| 22 | |
| 23 | logger.log(level, message) |
| 24 | |
| 25 | |
| 26 | def read_config_file(f: str | IO[str], list_values: bool = True) -> ConfigObj | None: |
no outgoing calls