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

+3 -3
View File
@@ -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,
},
}