mirror of https://github.com/gophish/gophish
Added handling for default logger if one is not specified. Fixes #1899
parent
f2042de3bc
commit
1c5ad85de1
|
@ -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…
Reference in New Issue