Software /
code /
prosody
Comparison
plugins/mod_websocket.lua @ 10111:0f335815244f
plugins: Remove tostring call from logging
Taken care of by loggingmanager now
Mass-rewrite using lua pattern like `tostring%b()`
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 30 Jul 2019 02:29:36 +0200 |
parent | 10097:1f45d316b222 |
child | 10325:f2bbad04cf64 |
comparison
equal
deleted
inserted
replaced
10110:3fa3872588a8 | 10111:0f335815244f |
---|---|
78 end | 78 end |
79 elseif reason.name then -- a stanza | 79 elseif reason.name then -- a stanza |
80 stream_error = reason; | 80 stream_error = reason; |
81 end | 81 end |
82 end | 82 end |
83 log("debug", "Disconnecting client, <stream:error> is: %s", tostring(stream_error)); | 83 log("debug", "Disconnecting client, <stream:error> is: %s", stream_error); |
84 session.send(stream_error); | 84 session.send(stream_error); |
85 end | 85 end |
86 | 86 |
87 session.send(st.stanza("close", { xmlns = xmlns_framing })); | 87 session.send(st.stanza("close", { xmlns = xmlns_framing })); |
88 function session.send() return false; end | 88 function session.send() return false; end |