lnd/build/config_prod.go
Elle Mouton 0512357c17
build: dedup logging config
Move all shared code to config.go which has no build tags.
2024-10-30 13:15:34 +02:00

23 lines
468 B
Go

//go:build !dev
// +build !dev
package build
// consoleLoggerCfg embeds the LoggerConfig struct along with any extensions
// specific to a production deployment.
//
//nolint:lll
type consoleLoggerCfg struct {
LoggerConfig
}
// defaultConsoleLoggerCfg returns the default consoleLoggerCfg for the prod
// console logger.
func defaultConsoleLoggerCfg() *consoleLoggerCfg {
return &consoleLoggerCfg{
LoggerConfig: LoggerConfig{
CallSite: callSiteOff,
},
}
}