mod_net_multiplex: Tweak debug logging for ALPN case
authorKim Alvefur <zash@zash.se>
Fri, 29 Nov 2019 23:41:41 +0100
changeset 10470 276f62d14437
parent 10469 09697a673015
child 10471 600d4cf41ce1
mod_net_multiplex: Tweak debug logging for ALPN case
plugins/mod_net_multiplex.lua
--- 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;