MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / FlushingStreamHandler

Class FlushingStreamHandler

scripts/llm_mock.py:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13# Custom Log Handler, ensuring flush
14class FlushingStreamHandler(logging.StreamHandler):
15 def emit(self, record):
16 try:
17 super().emit(record)
18 self.flush()
19 except Exception:
20 self.handleError(record)
21
22
23# Configure logging

Callers 1

llm_mock.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected