Software /
code /
prosody
Diff
plugins/mod_net_multiplex.lua @ 10466:276f62d14437
mod_net_multiplex: Tweak debug logging for ALPN case
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 29 Nov 2019 23:41:41 +0100 |
parent | 10465:09697a673015 |
child | 10475:fa0cad7c89e3 |
line wrap: on
line diff
--- a/plugins/mod_net_multiplex.lua Fri Nov 29 23:27:51 2019 +0100 +++ b/plugins/mod_net_multiplex.lua Fri Nov 29 23:41:41 2019 +0100 @@ -48,10 +48,9 @@ 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;