aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-29 23:41:41 +0100
committerKim Alvefur <zash@zash.se>2019-11-29 23:41:41 +0100
commita95af210d143f3c16c6512a53c154a80baa4f98d (patch)
tree0c18e37b2a1b7a14d82765c74648cbbe30d090b0 /plugins
parent0fdb85997abd2be59252595b1fec9e46389da586 (diff)
downloadprosody-a95af210d143f3c16c6512a53c154a80baa4f98d.tar.gz
prosody-a95af210d143f3c16c6512a53c154a80baa4f98d.zip
mod_net_multiplex: Tweak debug logging for ALPN case
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_net_multiplex.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_net_multiplex.lua b/plugins/mod_net_multiplex.lua
index 2bf1f88d..3de81ddc 100644
--- a/plugins/mod_net_multiplex.lua
+++ b/plugins/mod_net_multiplex.lua
@@ -48,10 +48,9 @@ function listener.onconnect(conn)
local sock = conn:socket();
if sock.getalpn then
local selected_proto = sock:getalpn();
- module:log("debug", "ALPN selected is %s", selected_proto);
local service = service_by_protocol[selected_proto];
if service then
- module:log("debug", "Routing incoming connection to %s", service.name);
+ module:log("debug", "Routing incoming connection to %s based on ALPN %q", service.name, selected_proto);
local next_listener = service.listener;
conn:setlistener(next_listener);
local onconnect = next_listener.onconnect;