@@ -27,7 +27,7 @@ const (
2727type LogConfig struct {
2828 Console * consoleLoggerCfg `group:"console" namespace:"console" description:"The logger writing to stdout and stderr."`
2929 File * FileLoggerConfig `group:"file" namespace:"file" description:"The logger writing to LND's standard log file."`
30- NoCommitHash bool `long:"no-commit-hash " description:"If set, the commit-hash of the current build will not be included in log lines by default ."`
30+ NoTimestamps bool `long:"no-timestamps " description:"Omit timestamps from log lines."`
3131}
3232
3333// Validate validates the LogConfig struct values.
@@ -45,7 +45,7 @@ func (c *LogConfig) Validate() error {
4545//nolint:ll
4646type LoggerConfig struct {
4747 Disable bool `long:"disable" description:"Disable this logger."`
48- NoTimestamps bool `long:"no-timestamps" description:"Omit timestamps from log lines."`
48+ NoTimestamps bool `long:"no-timestamps"description:"Omit timestamps from log lines."`
4949 CallSite string `long:"call-site" description:"Include the call-site of each log line." choice:"off" choice:"short" choice:"long"`
5050}
5151
@@ -57,7 +57,7 @@ func DefaultLogConfig() *LogConfig {
5757 Compressor : defaultLogCompressor ,
5858 MaxLogFiles : DefaultMaxLogFiles ,
5959 MaxLogFileSize : DefaultMaxLogFileSize ,
60- LoggerConfig : LoggerConfig {
60+ LoggerConfig : & LoggerConfig {
6161 CallSite : callSiteOff ,
6262 },
6363 },
@@ -92,7 +92,7 @@ func (cfg *LoggerConfig) HandlerOptions() []btclog.HandlerOption {
9292//
9393//nolint:ll
9494type FileLoggerConfig struct {
95- LoggerConfig
95+ * LoggerConfig `yaml:",inline"`
9696 Compressor string `long:"compressor" description:"Compression algorithm to use when rotating logs." choice:"gzip" choice:"zstd"`
9797 MaxLogFiles int `long:"max-files" description:"Maximum logfiles to keep (0 for no rotation)"`
9898 MaxLogFileSize int `long:"max-file-size" description:"Maximum logfile size in MB"`
0 commit comments