Software /
code /
prosody-modules
Comparison
mod_audit/mod_audit.lua @ 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 |
parent | 5734:c782f220b3ee |
child | 5754:1bdc6b5979ee |
comparison
equal
deleted
inserted
replaced
5736:dde83f6043e6 | 5737:c77010f25b14 |
---|---|
175 local jid = require "util.jid"; | 175 local jid = require "util.jid"; |
176 local arg = require "util.argparse".parse(arg_, { | 176 local arg = require "util.argparse".parse(arg_, { |
177 value_params = { "limit" }; | 177 value_params = { "limit" }; |
178 }); | 178 }); |
179 | 179 |
180 for k, v in pairs(arg) do print("U", k, v) end | 180 module:log("debug", "arg = %q", arg); |
181 local query_user, host = jid.prepped_split(arg[1]); | 181 local query_user, host = jid.prepped_split(arg[1]); |
182 | 182 |
183 if arg.prune then | 183 if arg.prune then |
184 local sm = require "core.storagemanager"; | 184 local sm = require "core.storagemanager"; |
185 if host then | 185 if host then |