MCPcopy Index your code
hub / github.com/ekalinin/nodeenv / emit

Function emit

nodeenv.py:206–210  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

204
205 # monkey patch
206 def emit(self, record):
207 msg = self.format(record)
208 fs = "%s" if getattr(record, "continued", False) else "%s\n"
209 self.stream.write(fs % to_utf8(msg))
210 self.flush()
211 logging.StreamHandler.emit = emit
212
213 # create console handler and set level to debug

Callers

nothing calls this directly

Calls 1

to_utf8Function · 0.85

Tested by

no test coverage detected