diff options
| author | Kujtim Hoxha <[email protected]> | 2025-04-09 19:07:39 +0200 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-04-09 19:07:39 +0200 |
| commit | d39d52d95d6aaab67fb3a17efb9ed62cc290e72f (patch) | |
| tree | 940bad6f0c847ceb213e5fc684b6d87cbf9d6996 /internal/config | |
| parent | 0d8d324ac6e640b95f4f2f62fd189399a959319a (diff) | |
| download | opencode-d39d52d95d6aaab67fb3a17efb9ed62cc290e72f.tar.gz opencode-d39d52d95d6aaab67fb3a17efb9ed62cc290e72f.zip | |
finish logs page
Diffstat (limited to 'internal/config')
| -rw-r--r-- | internal/config/config.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index 03b26e32c..943e0adbf 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -65,6 +65,8 @@ type Config struct { LSP map[string]LSPConfig `json:"lsp,omitempty"` Model *Model `json:"model,omitempty"` + + Debug bool `json:"debug,omitempty"` } var cfg *Config @@ -90,8 +92,10 @@ func Load(debug bool) error { // Add defaults viper.SetDefault("data.directory", defaultDataDirectory) if debug { + viper.SetDefault("debug", true) viper.Set("log.level", "debug") } else { + viper.SetDefault("debug", false) viper.SetDefault("log.level", defaultLogLevel) } |
