aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Khramtsov <ekhramtsov@process-one.net>2019-10-20 18:14:33 +0300
committerEvgeny Khramtsov <ekhramtsov@process-one.net>2019-10-20 18:14:33 +0300
commite388805049f88a5670e01f97e80a99181e8a02c9 (patch)
tree4ac0936319c5c661f07987502eec7930c7855eff /src
parentFix error reporting in configuration related admin commands (diff)
Log path to third-party configuration file
This should prevent confusions like the one described at https://stackoverflow.com/q/58353491/2610053
Diffstat (limited to 'src')
-rw-r--r--src/ejabberd_config.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ejabberd_config.erl b/src/ejabberd_config.erl
index aa13dec87..8ef391bb9 100644
--- a/src/ejabberd_config.erl
+++ b/src/ejabberd_config.erl
@@ -487,6 +487,10 @@ read_file(File, Opts) ->
true -> get_modules_configs();
false -> []
end,
+ lists:foreach(
+ fun(F) ->
+ ?INFO_MSG("Loading third-party configuration from ~ts", [F])
+ end, Files),
read_yaml_files([File|Files], lists:flatten(Opts1));
_ ->
read_erlang_file(File, lists:flatten(Opts1))