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 committed 2025-03-04 13:32:22 +02:00
1 parent f744a5477f
commit 1dec8ab985
3 files changed
+7 -7

No files matched your search

+2 -2
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,
},
}