MCPcopy Create free account
hub / github.com/InternScience/InternAgent / _drain_stdout

Function _drain_stdout

internagent/experiments_utils_claude.py:227–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

225
226 # Stream output in a background thread so timeout can work
227 def _drain_stdout():
228 try:
229 for line in process.stdout:
230 log_message(line.rstrip('\n'))
231 except Exception as e:
232 log_message(f"Error reading output: {e}")
233 reader = threading.Thread(target=_drain_stdout, daemon=True)
234 reader.start()
235

Callers

nothing calls this directly

Calls 1

log_messageFunction · 0.70

Tested by

no test coverage detected