-
Notifications
You must be signed in to change notification settings - Fork 14.7k
--log-level DEBUG removes log file #6583
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
- Remove all files from ~/.local/share/opencode/log
- Run
opencode - See that a new file was created under ~/.local/share/opencode/log
- Run
opencode --log-level DEBUG - 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working