MCPcopy Create free account
hub / github.com/bugy/script-server / _close

Method _close

src/execution/logging.py:66–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers 1

on_closeMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected