Software / code / prosody
Diff
plugins/mod_admin_shell.lua @ 13352:b1f5a5531564
mod_admin_shell: Remove verbose logging
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 29 Nov 2023 17:33:56 +0000 |
| parent | 13351:e8429d2faea4 |
| child | 13354:83f3076965f6 |
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua Wed Nov 29 17:22:18 2023 +0000 +++ b/plugins/mod_admin_shell.lua Wed Nov 29 17:33:56 2023 +0000 @@ -225,8 +225,6 @@ local result = st.stanza("repl-result"); - module:log("warn", "Processing line: %q", line); - if line:match("^>") then line = line:gsub("^>", ""); useglobalenv = true; @@ -2452,7 +2450,6 @@ local function on_command_added(event) local command = event.item; local mod_name = command._provided_by and ("mod_"..command._provided_by) or "<unknown module>"; - module:log("warn", "**************************************") if not schema.validate(command_metadata_schema, command) or type(command.handler) ~= "function" then module:log("warn", "Ignoring command added by %s: missing or invalid data", mod_name); return; @@ -2585,7 +2582,6 @@ module:handle_items("shell-command", new_item_handlers()); function module.add_host(host_module) - host_module:log("warn", "Loaded on %s", host_module.host); host_module:handle_items("shell-command", new_item_handlers(host_module.host)); end