(stream: BinaryIO, chunks: list[bytes])
| 64 | |
| 65 | |
| 66 | def drain(stream: BinaryIO, chunks: list[bytes]) -> None: |
| 67 | for chunk in iter(lambda: stream.read(8192), b""): |
| 68 | chunks.append(chunk) |
| 69 | |
| 70 | |
| 71 | def cache_log_tail(name: str, limit: int = 16384) -> str: |