# HG changeset patch # User Matthew Wild # Date 1331761214 0 # Node ID 83a5377ffea2c81927d2704726d2d2fd86ff37f5 # Parent 01d52f31b6b36c8e4c8c96c202c4bfd0d1f3ae42 portmanager: Fix log message when multiple services are configured to use the same port diff -r 01d52f31b6b3 -r 83a5377ffea2 core/portmanager.lua --- a/core/portmanager.lua Wed Mar 14 21:39:45 2012 +0000 +++ b/core/portmanager.lua Wed Mar 14 21:40:14 2012 +0000 @@ -95,7 +95,7 @@ for interface in bind_interfaces do for port in bind_ports do if not service_info.multiplex and #active_services:search(nil, interface, port) > 0 then - log("error", "Multiple services configured to listen on the same port: %s, %s", table.concat(active_services:search(nil, interface, port), ", "), service_name); + log("error", "Multiple services configured to listen on the same port ([%s]:%d): %s, %s", interface, port, active_services:search(nil, interface, port)[1][1].service.name or "", service_name or ""); else local handler, err = server.addserver(interface, port, listener, mode, ssl); if not handler then