MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / switch_log

Function switch_log

scripts/dashboard.py:2844–2850  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2842
2843@app.route("/api/switch", methods=["POST"])
2844def switch_log():
2845 path = request.args.get("path", "")
2846 resolved = _safe_resolve(path)
2847 if not resolved or not resolved.exists():
2848 return jsonify({"error": "Log file not found"}), 404
2849 logs = _collect_logs(log_root_path)
2850 return jsonify({"logs": logs, "current": str(resolved)})
2851
2852
2853@socketio.on("connect")

Callers

nothing calls this directly

Calls 3

_safe_resolveFunction · 0.85
_collect_logsFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected