mirror of
https://github.com/cline/cline.git
synced 2026-10-24 02:02:27 +08:00
The CLI logger wrote to CLINE_LOG_PATH when it was set, but cline doctor built the default path itself, so `cline doctor log` opened the wrong file and `doctor --verbose`/`--json` read recently spawned processes from it. Move the path into resolveCliLogPath() in logging/log-path.ts and call it from the logger and from both doctor readers. The module is separate from the logger so cline doctor doesn't load pino. The config page, the CLI reference, the proxy troubleshooting page and the CLI README now say that `cline doctor log` opens the CLINE_LOG_PATH file. Co-authored-by: Dominic Cooney <55120+dominiccooney@users.noreply.github.com>