diff options
Diffstat (limited to 'utils/config.go')
-rw-r--r-- | utils/config.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go index 5d786699b..3218211e3 100644 --- a/utils/config.go +++ b/utils/config.go @@ -150,7 +150,12 @@ func LoadConfig(fileName string) { CfgFileName = fileName } + if err := config.IsValid(); err != nil { + panic("Error validating config file=" + fileName + ", err=" + err.Message) + } + configureLog(&config.LogSettings) + TestConnection(&config) Cfg = &config SanitizeOptions = getSanitizeOptions(Cfg) |