build: add yaml tags to embedded LogConfig structs

For any embedded struct, the `yaml:",inline"` tag is required.
This commit is contained in:
Elle Mouton
2025-03-04 12:51:59 +02:00
parent f744a5477f
commit 1dec8ab985
3 changed files with 7 additions and 7 deletions

View File

@@ -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,
},
}