mod_audit: Replace argument parsing debug print() with debug logging
authorKim Alvefur <zash@zash.se>
Tue, 14 Nov 2023 16:01:33 +0100
changeset 5718 c77010f25b14
parent 5717 dde83f6043e6
child 5719 8488ebde5739
mod_audit: Replace argument parsing debug print() with debug logging prosodyctl -v to view
mod_audit/mod_audit.lua
--- a/mod_audit/mod_audit.lua	Mon Nov 13 17:23:49 2023 +0100
+++ b/mod_audit/mod_audit.lua	Tue Nov 14 16:01:33 2023 +0100
@@ -177,7 +177,7 @@
 		value_params = { "limit" };
 	 });
 
-	for k, v in pairs(arg) do print("U", k, v) end
+	module:log("debug", "arg = %q", arg);
 	local query_user, host = jid.prepped_split(arg[1]);
 
 	if arg.prune then