Skip to content

--log-level DEBUG removes log file #6583

@strk

Description

@strk

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions