OpenCode crashes when adding log_level to the configuration #882

Closed
opened 2026-02-16 17:28:39 -05:00 by yindo · 1 comment
Owner

Originally created by @rwbaskette on GitHub (Jul 23, 2025).

Originally assigned to: @thdxr on GitHub.

Setting the "log_level" parameter (per https://opencode.ai/docs/config/#logging) in the config file causes this message:

Error: Config file at /home/.../.config/opencode/opencode.json is invalid
↳ Unrecognized key(s) in object: 'log_level'
{
  "$schema": "https://opencode.ai/config.json",
  "log_level": "DEBUG",
  "provider": {
...

Thank you for all the good work!

Originally created by @rwbaskette on GitHub (Jul 23, 2025). Originally assigned to: @thdxr on GitHub. Setting the "log_level" parameter (per https://opencode.ai/docs/config/#logging) in the config file causes this message: ``` Error: Config file at /home/.../.config/opencode/opencode.json is invalid ↳ Unrecognized key(s) in object: 'log_level' ``` ``` { "$schema": "https://opencode.ai/config.json", "log_level": "DEBUG", "provider": { ... ``` Thank you for all the good work!
yindo closed this issue 2026-02-16 17:28:39 -05:00
Author
Owner

@thdxr commented on GitHub (Jul 23, 2025):

we removed log level from config - it's only a command line flag now. should update docs

@thdxr commented on GitHub (Jul 23, 2025): we removed log level from config - it's only a command line flag now. should update docs
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#882