diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-06-17 11:50:51 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-06-17 11:50:51 -0400 |
commit | 6eb3775956974c510122261346edc5fe230f3cf3 (patch) | |
tree | ffee832ee9520e4a61ab5eebd19383cf59eaa3ba /utils/config.go | |
parent | 5a8f8397167cec8cba29b70bb7dbdda9ba0265f7 (diff) | |
download | chat-6eb3775956974c510122261346edc5fe230f3cf3.tar.gz chat-6eb3775956974c510122261346edc5fe230f3cf3.tar.bz2 chat-6eb3775956974c510122261346edc5fe230f3cf3.zip |
Adding check of email configuation settings when config file is loaded
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 745887c70..418041706 100644 --- a/utils/config.go +++ b/utils/config.go @@ -222,6 +222,11 @@ func LoadConfig(fileName string) { config.ServiceSettings.Domain = os.Getenv("MATTERMOST_DOMAIN") } + // Validates our mail settings + if err := CheckMailSettings(); err != nil { + l4g.Error("Email settings are not valid err=%v", err) + } + configureLog(config.LogSettings) Cfg = &config |