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

Function _log

src/harness/checkpoints/workspace.py:46–53  ·  view source on GitHub ↗
(msg: str)

Source from the content-addressed store, hash-verified

44 """
45
46 def _log(msg: str) -> None:
47 try:
48 if logger:
49 logger(msg)
50 else:
51 print(msg)
52 except Exception:
53 print(msg) # Fallback if logger fails (e.g. log file path missing)
54
55 source_dir = Path(source_dir)
56 target_dir = Path(target_dir)

Callers 3

backup_workspaceFunction · 0.70
restore_workspaceFunction · 0.70
restore_task_filesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected