summaryrefslogtreecommitdiffstats
path: root/app/config.go
diff options
context:
space:
mode:
authorJesse Hallam <jesse.hallam@gmail.com>2018-03-22 15:33:02 -0400
committerSaturnino Abril <saturnino.abril@gmail.com>2018-03-23 03:33:02 +0800
commit87762ae62eb887dfb3fd0957040919aede46f7d4 (patch)
treecd549e7582e2b4ee9912ec9027a8af9608bab75a /app/config.go
parentc9e9484150fcc05ca12388c6db8b831c41f227eb (diff)
downloadchat-87762ae62eb887dfb3fd0957040919aede46f7d4.tar.gz
chat-87762ae62eb887dfb3fd0957040919aede46f7d4.tar.bz2
chat-87762ae62eb887dfb3fd0957040919aede46f7d4.zip
Improved bulkload error handling (#8491)
* log the config file path used by the server on startup * return an err if the bulk import command fails * log the underlying errors that occur when importing The code assumed all errors meant a missing resource, but it's possible something else is at fault. Including the error helps pinpoint that more readily.
Diffstat (limited to 'app/config.go')
-rw-r--r--app/config.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/config.go b/app/config.go
index 460d580d8..ccd7236a0 100644
--- a/app/config.go
+++ b/app/config.go
@@ -54,6 +54,7 @@ func (a *App) LoadConfig(configFile string) *model.AppError {
a.configFile = configPath
utils.ConfigureLog(&cfg.LogSettings)
+ l4g.Info("Using config file at %s", configPath)
a.config.Store(cfg)