MCPcopy Create free account
hub / github.com/SuperJJ007/CSSwitch / log

Function log

proxy/csswitch_proxy.py:199–204  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

197
198
199def log(msg):
200 line = f"[{time.strftime('%H:%M:%S')}] {msg}"
201 print(line, flush=True)
202 if LOG:
203 with open(LOG, "a") as f:
204 f.write(line + "\n")
205
206
207def load_key(prov, args):

Callers 8

http_postFunction · 0.70
open_streamFunction · 0.70
http_get_jsonFunction · 0.70
build_models_responseFunction · 0.70
do_CONNECTMethod · 0.70
_handle_anthropicMethod · 0.70
_handle_openaiMethod · 0.70
csswitch_proxy.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected