mirror of
https://github.com/akyaiy/GoSally-mvp.git
synced 2026-01-03 08:52:24 +00:00
fix bug
This commit is contained in:
@@ -61,6 +61,7 @@ func (c *Compositor) LoadConf(path string) error {
|
|||||||
v.SetDefault("log.json_format", "false")
|
v.SetDefault("log.json_format", "false")
|
||||||
v.SetDefault("log.level", "info")
|
v.SetDefault("log.level", "info")
|
||||||
v.SetDefault("log.output", "%2%")
|
v.SetDefault("log.output", "%2%")
|
||||||
|
v.SetDefault("disable_warnings", []string{})
|
||||||
|
|
||||||
if err := v.ReadInConfig(); err != nil {
|
if err := v.ReadInConfig(); err != nil {
|
||||||
return fmt.Errorf("error reading config: %w", err)
|
return fmt.Errorf("error reading config: %w", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user