From d3c64e03a514e39d70e6b79209be1f8cf052a25d Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Thu, 20 Jun 2024 16:02:42 +0300 Subject: [PATCH] home: imp docs --- internal/home/config.go | 6 ++++-- internal/home/log.go | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/internal/home/config.go b/internal/home/config.go index ab9f4ef1..2c15740c 100644 --- a/internal/home/config.go +++ b/internal/home/config.go @@ -458,11 +458,13 @@ var config = &configuration{ }, Log: logSettings{ Enabled: true, - Compress: false, - LocalTime: false, + File: "", MaxBackups: 0, MaxSize: 100, MaxAge: 3, + Compress: false, + LocalTime: false, + Verbose: false, }, OSConfig: &osConfig{}, SchemaVersion: configmigrate.LastSchemaVersion, diff --git a/internal/home/log.go b/internal/home/log.go index 15354b82..fd18d1ec 100644 --- a/internal/home/log.go +++ b/internal/home/log.go @@ -93,6 +93,8 @@ func getLogSettings(opts options) (ls *logSettings) { // separate method in order to configure logger before the actual configuration // is parsed and applied. func readLogSettings() (ls *logSettings) { + // TODO(s.chzhen): Add a helper function that returns default parameters + // for this structure and for the global configuration structure [config]. conf := &configuration{ Log: logSettings{ // By default, it is true if the property does not exist.