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
@@ -8,14 +8,14 @@ package build
|
||||
//
|
||||
//nolint:ll
|
||||
type consoleLoggerCfg struct {
|
||||
LoggerConfig
|
||||
*LoggerConfig `yaml:",inline"`
|
||||
}
|
||||
|
||||
// defaultConsoleLoggerCfg returns the default consoleLoggerCfg for the prod
|
||||
// console logger.
|
||||
func defaultConsoleLoggerCfg() *consoleLoggerCfg {
|
||||
return &consoleLoggerCfg{
|
||||
LoggerConfig: LoggerConfig{
|
||||
LoggerConfig: &LoggerConfig{
|
||||
CallSite: callSiteOff,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user