mirror of
https://github.com/gophish/gophish
synced 2024-11-14 16:27:23 +00:00
Added handling for default logger if one is not specified. Fixes #1899
This commit is contained in:
parent
f2042de3bc
commit
1c5ad85de1
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue