prosodyctl: check config: Report paths of loaded configuration files (fixed #1729) 0.12
authorMatthew Wild <mwild1@gmail.com>
Mon, 28 Mar 2022 11:41:57 +0100
branch0.12
changeset 12445 dc6263625069
parent 12444 1ef893715311
child 12446 1c322c277923
child 12447 17d87fb2312a
prosodyctl: check config: Report paths of loaded configuration files (fixed #1729)
util/prosodyctl/check.lua
--- a/util/prosodyctl/check.lua	Mon Mar 28 11:41:32 2022 +0100
+++ b/util/prosodyctl/check.lua	Mon Mar 28 11:41:57 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",