finish logs page
This commit is contained in:
parent
0d8d324ac6
commit
d39d52d95d
22 changed files with 564 additions and 250 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue