]> granicus.if.org Git - ejabberd/commitdiff
Log path to third-party configuration file
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Sun, 20 Oct 2019 15:14:33 +0000 (18:14 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Sun, 20 Oct 2019 15:14:33 +0000 (18:14 +0300)
This should prevent confusions like the one described at
https://stackoverflow.com/q/58353491/2610053

src/ejabberd_config.erl

index aa13dec8793e9b86e0545ca9154a6e1bf37464e7..8ef391bb93de84bab93e3d7b0110c430ae82dc82 100644 (file)
@@ -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))