aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep_simple.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-30 02:29:36 +0200
committerKim Alvefur <zash@zash.se>2019-07-30 02:29:36 +0200
commit40b1e3e0ed1223517f29bcf136fc08a6f33b17f2 (patch)
treed9c5e487acf897127720acb3e5109a5e87eb9a2d /plugins/mod_pep_simple.lua
parent0e16eeb216d52e4cce2457fae31e1618a8b6e446 (diff)
downloadprosody-40b1e3e0ed1223517f29bcf136fc08a6f33b17f2.tar.gz
prosody-40b1e3e0ed1223517f29bcf136fc08a6f33b17f2.zip
plugins: Remove tostring call from logging
Taken care of by loggingmanager now Mass-rewrite using lua pattern like `tostring%b()`
Diffstat (limited to 'plugins/mod_pep_simple.lua')
-rw-r--r--plugins/mod_pep_simple.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_pep_simple.lua b/plugins/mod_pep_simple.lua
index f91e5448..11268ab7 100644
--- a/plugins/mod_pep_simple.lua
+++ b/plugins/mod_pep_simple.lua
@@ -230,13 +230,13 @@ module:hook("iq/bare/http://jabber.org/protocol/pubsub:pubsub", function(event)
return true;
else --invalid request
session.send(st.error_reply(stanza, 'modify', 'bad-request'));
- module:log("debug", "Invalid request: %s", tostring(payload));
+ module:log("debug", "Invalid request: %s", payload);
return true;
end
else --no presence subscription
session.send(st.error_reply(stanza, 'auth', 'not-authorized')
:tag('presence-subscription-required', {xmlns='http://jabber.org/protocol/pubsub#errors'}));
- module:log("debug", "Unauthorized request: %s", tostring(payload));
+ module:log("debug", "Unauthorized request: %s", payload);
return true;
end
end