Browse Source

Added handling for default logger if one is not specified. Fixes #1899

pull/1909/head
Jordan Wright 1 year ago
parent
commit
1c5ad85de1
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      config/config.go

+ 3
- 0
config/config.go View File

@ -55,6 +55,9 @@ func LoadConfig(filepath string) (*Config, error) {
if err != nil {
return nil, err
}
if config.Logging == nil {
config.Logging = &log.Config{}
}
// Choosing the migrations directory based on the database used.
config.MigrationsPath = config.MigrationsPath + config.DBName
// Explicitly set the TestFlag to false to prevent config.json overrides

Loading…
Cancel
Save