(self, data)
| 130 | self.stream_name = stream_name |
| 131 | |
| 132 | def write(self, data): |
| 133 | try: |
| 134 | self.original_stream.write(data) |
| 135 | except Exception: |
| 136 | pass |
| 137 | try: |
| 138 | ensure_logs_dir() |
| 139 | with RUN_LOG_FILE.open("a", encoding="utf-8", errors="replace") as f: |
| 140 | f.write(data) |
| 141 | except Exception: |
| 142 | pass |
| 143 | |
| 144 | def flush(self): |
| 145 | try: |
no test coverage detected