Adds omitempty to several configuration fields
Includes deprecated Loglevel, Log.Formatter, and Log.Fields
This commit is contained in:
parent
5fe1039947
commit
5955c73db7
2 changed files with 5 additions and 5 deletions
|
@ -18,8 +18,8 @@ var configStruct = Configuration{
|
|||
Version: "0.1",
|
||||
Log: struct {
|
||||
Level Loglevel `yaml:"level"`
|
||||
Formatter string `yaml:"formatter"`
|
||||
Fields map[string]interface{} `yaml:"fields"`
|
||||
Formatter string `yaml:"formatter,omitempty"`
|
||||
Fields map[string]interface{} `yaml:"fields,omitempty"`
|
||||
}{
|
||||
Fields: map[string]interface{}{"environment": "test"},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue