(self)
| 64 | LOGGER.exception("Couldn't write to the log file") |
| 65 | |
| 66 | def _close(self): |
| 67 | try: |
| 68 | if self.log_file: |
| 69 | self.log_file.close() |
| 70 | except: |
| 71 | LOGGER.exception("Couldn't close the log file") |
| 72 | |
| 73 | self.closed = True |
| 74 | |
| 75 | if self.close_callback: |
| 76 | self.close_callback() |
| 77 | |
| 78 | def on_next(self, output): |
| 79 | self.__log(output) |