opencode icon indicating copy to clipboard operation
opencode copied to clipboard

--log-level DEBUG removes log file

Open strk opened this issue 1 week ago • 1 comments

Description

When running opencode with no switches I see a file named 2026-01-01T152627.log appears under ~/.local/share/opencode/log

Then I follow the instructions in https://opencode.ai/docs/troubleshooting/#logs and pass the --log-level DEBUG switch. When I do that, the file that was created before is REMOVED, and no new file is created.

OpenCode version

1.0.62

Steps to reproduce

  1. Remove all files from ~/.local/share/opencode/log
  2. Run opencode
  3. See that a new file was created under ~/.local/share/opencode/log
  4. Run opencode --log-level DEBUG
  5. See that no files are now under ~/.local/share/opencode/log

Screenshot and/or share link

No response

Operating System

Debian GNU/Linux 13 (trixie)

Terminal

No response

strk avatar Jan 01 '26 15:01 strk