Skip to content

Commit

Permalink
Merge pull request #83 from webitel/v24.10
Browse files Browse the repository at this point in the history
V24.10
  • Loading branch information
navrotskyj authored Dec 12, 2024
2 parents ec010b6 + 86ef87b commit d094245
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,9 @@ func loadConfig() (*model.Config, error) {
//return nil, err
}

if !config.Log.Console && !config.Log.Otel && len(config.Log.File) == 0 {
config.Log.Console = true
}

return &config, nil
}
2 changes: 1 addition & 1 deletion model/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type LogSettings struct {
Json bool `json:"json" flag:"log_json|false|Log format JSON" env:"LOG_JSON"`
Otel bool `json:"otel" flag:"log_otel|false|Log OTEL" env:"LOG_OTEL"`
File string `json:"file" flag:"log_file||Log file directory" env:"LOG_FILE"`
Console bool `json:"console" flag:"log_console|1|Log console" env:"LOG_CONSOLE"`
Console bool `json:"console" flag:"log_console|false|Log console" env:"LOG_CONSOLE"`
}

type CallSettings struct {
Expand Down

0 comments on commit d094245

Please sign in to comment.