build: add yaml tags to embedded LogConfig structs
For any embedded struct, the `yaml:",inline"` tag is required.
This commit is contained in:
3 files changed
+7
-7
No files matched your search
+3
-3
@@ -24,15 +24,15 @@ const (
|
||||
//
|
||||
//nolint:ll
|
||||
type consoleLoggerCfg struct {
|
||||
LoggerConfig
|
||||
Style bool `long:"style" description:"If set, the output will be styled with color and fonts"`
|
||||
*LoggerConfig `yaml:",inline"`
|
||||
Style bool `long:"style" description:"If set, the output will be styled with color and fonts"`
|
||||
}
|
||||
|
||||
// defaultConsoleLoggerCfg returns the default consoleLoggerCfg for the dev
|
||||
// console logger.
|
||||
func defaultConsoleLoggerCfg() *consoleLoggerCfg {
|
||||
return &consoleLoggerCfg{
|
||||
LoggerConfig: LoggerConfig{
|
||||
LoggerConfig: &LoggerConfig{
|
||||
CallSite: callSiteShort,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user