Append a timestamped entry to log.md.
(operation: str, detail: str)
| 108 | |
| 109 | |
| 110 | def _append_log(operation: str, detail: str) -> None: |
| 111 | """Append a timestamped entry to log.md.""" |
| 112 | _ensure_dirs() |
| 113 | timestamp = datetime.now(timezone.utc).strftime("%Y-%m-%d") |
| 114 | entry = f"\n## [{timestamp}] {operation} | {detail}\n" |
| 115 | with open(_LOG_FILE, "a") as f: |
| 116 | f.write(entry) |
| 117 | |
| 118 | |
| 119 | # --------------------------------------------------------------------------- |
no test coverage detected