Changeset

5737:c77010f25b14

mod_audit: Replace argument parsing debug print() with debug logging prosodyctl -v to view
author Kim Alvefur <zash@zash.se>
date Tue, 14 Nov 2023 16:01:33 +0100
parents 5736:dde83f6043e6
children 5738:8488ebde5739
files mod_audit/mod_audit.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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