# HG changeset patch # User Matthew Wild # Date 1648464136 -3600 # Node ID 1c322c27792373da59c5a5c1fb56426403d23218 # Parent f0064191f885dea2188dc19fb3dd7a8c36116d5f# Parent dc62636250692f92861220db6db3ae1f7df24dac Merge 0.12->trunk diff -r f0064191f885 -r 1c322c277923 core/configmanager.lua --- a/core/configmanager.lua Mon Mar 28 11:08:53 2022 +0100 +++ b/core/configmanager.lua Mon Mar 28 11:42:16 2022 +0100 @@ -31,6 +31,7 @@ local config_mt = { __index = function (t, _) return rawget(t, "*"); end}; local config = setmetatable({ ["*"] = { } }, config_mt); +local files = {}; -- When host not found, use global local host_mt = { __index = function(_, k) return config["*"][k] end } @@ -98,6 +99,10 @@ end end +function _M.files() + return files; +end + -- Built-in Lua parser do local pcall = _G.pcall; @@ -253,6 +258,8 @@ return nil, err; end + t_insert(files, config_file); + return true, warnings; end diff -r f0064191f885 -r 1c322c277923 util/prosodyctl/check.lua --- a/util/prosodyctl/check.lua Mon Mar 28 11:08:53 2022 +0100 +++ b/util/prosodyctl/check.lua Mon Mar 28 11:42:16 2022 +0100 @@ -332,6 +332,13 @@ end if not what or what == "config" then print("Checking config..."); + + if what == "config" then + local files = configmanager.files(); + print(" The following configuration files have been loaded:"); + print(" - "..table.concat(files, "\n - ")); + end + local obsolete = set.new({ --> remove "archive_cleanup_interval", "cross_domain_bosh",