MCPcopy Create free account
hub / github.com/microsoft/debugpy / close

Method close

src/debugpy/common/log.py:84–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82 pass
83
84 def close(self):
85 with _lock:
86 del _files[self.filename]
87 _update_levels()
88 info("Not logging to {0} anymore.", json.repr(self.filename))
89
90 if self.close_file:
91 try:
92 self.file.close()
93 except Exception: # pragma: no cover
94 pass
95
96 def __enter__(self):
97 return self

Callers 1

__exit__Method · 0.95

Calls 3

_update_levelsFunction · 0.85
infoFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected