Skip to content

Commit

Permalink
home: imp docs
Browse files Browse the repository at this point in the history
  • Loading branch information
schzhn committed Jun 20, 2024
1 parent 7658c9b commit d3c64e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/home/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions internal/home/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d3c64e0

Please sign in to comment.